@utrecht/component-library-react 1.0.0-alpha.1 → 1.0.0-alpha.4

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 (127) hide show
  1. package/README.md +46 -46
  2. package/dist/{Article.d.ts → cjs/Article.d.ts} +1 -2
  3. package/dist/cjs/Article.js +29 -0
  4. package/dist/{Backdrop.d.ts → cjs/Backdrop.d.ts} +0 -0
  5. package/dist/cjs/Backdrop.js +29 -0
  6. package/dist/{Button.d.ts → cjs/Button.d.ts} +1 -2
  7. package/dist/cjs/Button.js +25 -0
  8. package/dist/{Checkbox.d.ts → cjs/Checkbox.d.ts} +1 -2
  9. package/dist/cjs/Checkbox.js +25 -0
  10. package/dist/{Document.d.ts → cjs/Document.d.ts} +0 -0
  11. package/dist/cjs/Document.js +29 -0
  12. package/dist/{Fieldset.d.ts → cjs/Fieldset.d.ts} +1 -2
  13. package/dist/cjs/Fieldset.js +25 -0
  14. package/dist/{FieldsetLegend.d.ts → cjs/FieldsetLegend.d.ts} +1 -2
  15. package/dist/cjs/FieldsetLegend.js +25 -0
  16. package/dist/{FormField.d.ts → cjs/FormField.d.ts} +1 -2
  17. package/dist/cjs/FormField.js +25 -0
  18. package/dist/{FormFieldDescription.d.ts → cjs/FormFieldDescription.d.ts} +1 -2
  19. package/dist/cjs/FormFieldDescription.js +25 -0
  20. package/dist/{FormLabel.d.ts → cjs/FormLabel.d.ts} +1 -2
  21. package/dist/cjs/FormLabel.js +25 -0
  22. package/dist/{HTMLContent.d.ts → cjs/HTMLContent.d.ts} +0 -0
  23. package/dist/cjs/HTMLContent.js +29 -0
  24. package/dist/{Heading1.d.ts → cjs/Heading1.d.ts} +1 -2
  25. package/dist/cjs/Heading1.js +29 -0
  26. package/dist/{Heading2.d.ts → cjs/Heading2.d.ts} +1 -2
  27. package/dist/cjs/Heading2.js +29 -0
  28. package/dist/{Heading3.d.ts → cjs/Heading3.d.ts} +1 -2
  29. package/dist/cjs/Heading3.js +29 -0
  30. package/dist/{Heading4.d.ts → cjs/Heading4.d.ts} +1 -2
  31. package/dist/cjs/Heading4.js +29 -0
  32. package/dist/{Heading5.d.ts → cjs/Heading5.d.ts} +1 -2
  33. package/dist/cjs/Heading5.js +29 -0
  34. package/dist/{Heading6.d.ts → cjs/Heading6.d.ts} +1 -2
  35. package/dist/cjs/Heading6.js +29 -0
  36. package/dist/{Link.d.ts → cjs/Link.d.ts} +1 -2
  37. package/dist/{Link.js → cjs/Link.js} +12 -6
  38. package/dist/{OrderedList.d.ts → cjs/OrderedList.d.ts} +1 -2
  39. package/dist/cjs/OrderedList.js +29 -0
  40. package/dist/{OrderedListItem.d.ts → cjs/OrderedListItem.d.ts} +1 -2
  41. package/dist/cjs/OrderedListItem.js +29 -0
  42. package/dist/{Page.d.ts → cjs/Page.d.ts} +0 -0
  43. package/dist/{Page.js → cjs/Page.js} +12 -6
  44. package/dist/{PageContent.d.ts → cjs/PageContent.d.ts} +2 -3
  45. package/dist/cjs/PageContent.js +34 -0
  46. package/dist/{PageFooter.d.ts → cjs/PageFooter.d.ts} +0 -0
  47. package/dist/cjs/PageFooter.js +29 -0
  48. package/dist/{PageHeader.d.ts → cjs/PageHeader.d.ts} +0 -0
  49. package/dist/cjs/PageHeader.js +29 -0
  50. package/dist/{Paragraph.d.ts → cjs/Paragraph.d.ts} +1 -2
  51. package/dist/cjs/Paragraph.js +29 -0
  52. package/dist/{RadioButton.d.ts → cjs/RadioButton.d.ts} +1 -2
  53. package/dist/cjs/RadioButton.js +25 -0
  54. package/dist/{Select.d.ts → cjs/Select.d.ts} +2 -3
  55. package/dist/cjs/Select.js +31 -0
  56. package/dist/{Separator.d.ts → cjs/Separator.d.ts} +1 -2
  57. package/dist/{Separator.js → cjs/Separator.js} +12 -6
  58. package/dist/{Surface.d.ts → cjs/Surface.d.ts} +0 -0
  59. package/dist/{Surface.js → cjs/Surface.js} +12 -6
  60. package/dist/{Table.d.ts → cjs/Table.d.ts} +1 -2
  61. package/dist/{Table.js → cjs/Table.js} +12 -6
  62. package/dist/{TableBody.d.ts → cjs/TableBody.d.ts} +1 -2
  63. package/dist/cjs/TableBody.js +29 -0
  64. package/dist/{TableCaption.d.ts → cjs/TableCaption.d.ts} +1 -2
  65. package/dist/cjs/TableCaption.js +29 -0
  66. package/dist/{TableCell.d.ts → cjs/TableCell.d.ts} +1 -2
  67. package/dist/cjs/TableCell.js +29 -0
  68. package/dist/{TableFooter.d.ts → cjs/TableFooter.d.ts} +1 -2
  69. package/dist/cjs/TableFooter.js +29 -0
  70. package/dist/{TableHeader.d.ts → cjs/TableHeader.d.ts} +1 -2
  71. package/dist/cjs/TableHeader.js +29 -0
  72. package/dist/{TableHeaderCell.d.ts → cjs/TableHeaderCell.d.ts} +1 -2
  73. package/dist/cjs/TableHeaderCell.js +29 -0
  74. package/dist/{TableRow.d.ts → cjs/TableRow.d.ts} +1 -2
  75. package/dist/cjs/TableRow.js +29 -0
  76. package/dist/{Textarea.d.ts → cjs/Textarea.d.ts} +1 -2
  77. package/dist/cjs/Textarea.js +25 -0
  78. package/dist/{Textbox.d.ts → cjs/Textbox.d.ts} +1 -2
  79. package/dist/cjs/Textbox.js +25 -0
  80. package/dist/{URLValue.d.ts → cjs/URLValue.d.ts} +0 -0
  81. package/dist/{URLValue.js → cjs/URLValue.js} +12 -6
  82. package/dist/{UnorderedList.d.ts → cjs/UnorderedList.d.ts} +1 -2
  83. package/dist/cjs/UnorderedList.js +29 -0
  84. package/dist/{UnorderedListItem.d.ts → cjs/UnorderedListItem.d.ts} +0 -0
  85. package/dist/cjs/UnorderedListItem.js +29 -0
  86. package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  87. package/dist/cjs/index.js +92 -0
  88. package/dist/cjs/tsconfig.tsbuildinfo +2533 -0
  89. package/package.json +184 -11
  90. package/dist/Article.js +0 -23
  91. package/dist/Backdrop.js +0 -23
  92. package/dist/Button.js +0 -19
  93. package/dist/Checkbox.js +0 -19
  94. package/dist/Document.js +0 -23
  95. package/dist/Fieldset.js +0 -19
  96. package/dist/FieldsetLegend.js +0 -19
  97. package/dist/FormField.js +0 -19
  98. package/dist/FormFieldDescription.js +0 -19
  99. package/dist/FormLabel.js +0 -19
  100. package/dist/HTMLContent.js +0 -23
  101. package/dist/Heading1.js +0 -23
  102. package/dist/Heading2.js +0 -23
  103. package/dist/Heading3.js +0 -23
  104. package/dist/Heading4.js +0 -23
  105. package/dist/Heading5.js +0 -23
  106. package/dist/Heading6.js +0 -23
  107. package/dist/OrderedList.js +0 -23
  108. package/dist/OrderedListItem.js +0 -23
  109. package/dist/PageContent.js +0 -28
  110. package/dist/PageFooter.js +0 -23
  111. package/dist/PageHeader.js +0 -23
  112. package/dist/Paragraph.js +0 -23
  113. package/dist/RadioButton.js +0 -19
  114. package/dist/Select.js +0 -25
  115. package/dist/TableBody.js +0 -23
  116. package/dist/TableCaption.js +0 -23
  117. package/dist/TableCell.js +0 -23
  118. package/dist/TableFooter.js +0 -23
  119. package/dist/TableHeader.js +0 -23
  120. package/dist/TableHeaderCell.js +0 -23
  121. package/dist/TableRow.js +0 -23
  122. package/dist/Textarea.js +0 -19
  123. package/dist/Textbox.js +0 -19
  124. package/dist/UnorderedList.js +0 -23
  125. package/dist/UnorderedListItem.js +0 -23
  126. package/dist/index.js +0 -46
  127. package/dist/tsconfig.tsbuildinfo +0 -2533
package/README.md CHANGED
@@ -27,8 +27,8 @@ npm install --save-dev --save-exact @utrecht/component-library-react
27
27
  With this package available, you can render any component from the library in your page. For example:
28
28
 
29
29
  ```jsx
30
- import { Document } from "@utrecht/component-library-react/dist/Document";
31
- import { Heading1 } from "@utrecht/component-library-react/dist/Heading1";
30
+ import { Document } from "@utrecht/component-library-react/Document";
31
+ import { Heading1 } from "@utrecht/component-library-react/Heading1";
32
32
 
33
33
  export const MyPage = () => (
34
34
  <Document>
@@ -41,8 +41,8 @@ Additionally you should also include the CSS for the components and the design t
41
41
 
42
42
  ```js
43
43
  // Package with the HTML rendering of components
44
- import { Document } from "@utrecht/component-library-react/dist/Document";
45
- import { Heading1 } from "@utrecht/component-library-react/dist/Heading1";
44
+ import { Document } from "@utrecht/component-library-react/Document";
45
+ import { Heading1 } from "@utrecht/component-library-react/Heading1";
46
46
 
47
47
  // Package with CSS for white-label components
48
48
  import "@utrecht/component-library-css/dist/bem.css";
@@ -66,48 +66,48 @@ We make components for React available when needed in a project. Not every compo
66
66
  Currently the following components are available:
67
67
 
68
68
  ```js
69
- import { Article } from "@utrecht/component-library-react/dist/Article";
70
- import { Backdrop } from "@utrecht/component-library-react/dist/Backdrop";
71
- import { Button } from "@utrecht/component-library-react/dist/Button";
72
- import { Checkbox } from "@utrecht/component-library-react/dist/Checkbox";
73
- import { Document } from "@utrecht/component-library-react/dist/Document";
74
- import { Fieldset } from "@utrecht/component-library-react/dist/Fieldset";
75
- import { FieldsetLegend } from "@utrecht/component-library-react/dist/FieldsetLegend";
76
- import { FormField } from "@utrecht/component-library-react/dist/FormField";
77
- import { FormFieldDescription } from "@utrecht/component-library-react/dist/FormFieldDescription";
78
- import { FormLabel } from "@utrecht/component-library-react/dist/FormLabel";
79
- import { HTMLContent } from "@utrecht/component-library-react/dist/HTMLContent";
80
- import { Heading1 } from "@utrecht/component-library-react/dist/Heading1";
81
- import { Heading2 } from "@utrecht/component-library-react/dist/Heading2";
82
- import { Heading3 } from "@utrecht/component-library-react/dist/Heading3";
83
- import { Heading4 } from "@utrecht/component-library-react/dist/Heading4";
84
- import { Heading5 } from "@utrecht/component-library-react/dist/Heading5";
85
- import { Heading6 } from "@utrecht/component-library-react/dist/Heading6";
86
- import { Link } from "@utrecht/component-library-react/dist/Link";
87
- import { OrderedList } from "@utrecht/component-library-react/dist/OrderedList";
88
- import { OrderedListItem } from "@utrecht/component-library-react/dist/OrderedListItem";
89
- import { Page } from "@utrecht/component-library-react/dist/Page";
90
- import { PageContent } from "@utrecht/component-library-react/dist/PageContent";
91
- import { PageFooter } from "@utrecht/component-library-react/dist/PageFooter";
92
- import { PageHeader } from "@utrecht/component-library-react/dist/PageHeader";
93
- import { Paragraph } from "@utrecht/component-library-react/dist/Paragraph";
94
- import { RadioButton } from "@utrecht/component-library-react/dist/RadioButton";
95
- import { Select, SelectOption } from "@utrecht/component-library-react/dist/Select";
96
- import { Separator } from "@utrecht/component-library-react/dist/Separator";
97
- import { Surface } from "@utrecht/component-library-react/dist/Surface";
98
- import { Table } from "@utrecht/component-library-react/dist/Table";
99
- import { TableBody } from "@utrecht/component-library-react/dist/TableBody";
100
- import { TableCaption } from "@utrecht/component-library-react/dist/TableCaption";
101
- import { TableCell } from "@utrecht/component-library-react/dist/TableCell";
102
- import { TableFooter } from "@utrecht/component-library-react/dist/TableFooter";
103
- import { TableHeader } from "@utrecht/component-library-react/dist/TableHeader";
104
- import { TableHeaderCell } from "@utrecht/component-library-react/dist/TableHeaderCell";
105
- import { TableRow } from "@utrecht/component-library-react/dist/TableRow";
106
- import { Textarea } from "@utrecht/component-library-react/dist/Textarea";
107
- import { Textbox } from "@utrecht/component-library-react/dist/Textbox";
108
- import { URLValue } from "@utrecht/component-library-react/dist/URLValue";
109
- import { UnorderedList } from "@utrecht/component-library-react/dist/UnorderedList";
110
- import { UnorderedListItem } from "@utrecht/component-library-react/dist/UnorderedListItem";
69
+ import { Article } from "@utrecht/component-library-react/Article";
70
+ import { Backdrop } from "@utrecht/component-library-react/Backdrop";
71
+ import { Button } from "@utrecht/component-library-react/Button";
72
+ import { Checkbox } from "@utrecht/component-library-react/Checkbox";
73
+ import { Document } from "@utrecht/component-library-react/Document";
74
+ import { Fieldset } from "@utrecht/component-library-react/Fieldset";
75
+ import { FieldsetLegend } from "@utrecht/component-library-react/FieldsetLegend";
76
+ import { FormField } from "@utrecht/component-library-react/FormField";
77
+ import { FormFieldDescription } from "@utrecht/component-library-react/FormFieldDescription";
78
+ import { FormLabel } from "@utrecht/component-library-react/FormLabel";
79
+ import { HTMLContent } from "@utrecht/component-library-react/HTMLContent";
80
+ import { Heading1 } from "@utrecht/component-library-react/Heading1";
81
+ import { Heading2 } from "@utrecht/component-library-react/Heading2";
82
+ import { Heading3 } from "@utrecht/component-library-react/Heading3";
83
+ import { Heading4 } from "@utrecht/component-library-react/Heading4";
84
+ import { Heading5 } from "@utrecht/component-library-react/Heading5";
85
+ import { Heading6 } from "@utrecht/component-library-react/Heading6";
86
+ import { Link } from "@utrecht/component-library-react/Link";
87
+ import { OrderedList } from "@utrecht/component-library-react/OrderedList";
88
+ import { OrderedListItem } from "@utrecht/component-library-react/OrderedListItem";
89
+ import { Page } from "@utrecht/component-library-react/Page";
90
+ import { PageContent } from "@utrecht/component-library-react/PageContent";
91
+ import { PageFooter } from "@utrecht/component-library-react/PageFooter";
92
+ import { PageHeader } from "@utrecht/component-library-react/PageHeader";
93
+ import { Paragraph } from "@utrecht/component-library-react/Paragraph";
94
+ import { RadioButton } from "@utrecht/component-library-react/RadioButton";
95
+ import { Select, SelectOption } from "@utrecht/component-library-react/Select";
96
+ import { Separator } from "@utrecht/component-library-react/Separator";
97
+ import { Surface } from "@utrecht/component-library-react/Surface";
98
+ import { Table } from "@utrecht/component-library-react/Table";
99
+ import { TableBody } from "@utrecht/component-library-react/TableBody";
100
+ import { TableCaption } from "@utrecht/component-library-react/TableCaption";
101
+ import { TableCell } from "@utrecht/component-library-react/TableCell";
102
+ import { TableFooter } from "@utrecht/component-library-react/TableFooter";
103
+ import { TableHeader } from "@utrecht/component-library-react/TableHeader";
104
+ import { TableHeaderCell } from "@utrecht/component-library-react/TableHeaderCell";
105
+ import { TableRow } from "@utrecht/component-library-react/TableRow";
106
+ import { Textarea } from "@utrecht/component-library-react/Textarea";
107
+ import { Textbox } from "@utrecht/component-library-react/Textbox";
108
+ import { URLValue } from "@utrecht/component-library-react/URLValue";
109
+ import { UnorderedList } from "@utrecht/component-library-react/UnorderedList";
110
+ import { UnorderedListItem } from "@utrecht/component-library-react/UnorderedListItem";
111
111
  ```
112
112
 
113
113
  Alternatively it is possible to include them via the collection of components too, but be careful: you will likely need to take additional steps prevent your site from also including the code for components you don't actually use. Including unused components would negatively impact the performance of your site.
@@ -3,6 +3,5 @@
3
3
  * Copyright (c) 2021 Robbert Broersma
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
- declare type ArticleProps = HTMLAttributes<HTMLElement>;
6
+ export declare type ArticleProps = HTMLAttributes<HTMLElement>;
7
7
  export declare const Article: import("react").ForwardRefExoticComponent<ArticleProps & import("react").RefAttributes<HTMLElement>>;
8
- export {};
@@ -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.Article = 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.Article = react_1.forwardRef((_a, ref) => {
26
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
+ return (jsx_runtime_1.jsx("article", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-article', className) }, { children: children }), void 0));
28
+ });
29
+ exports.Article.displayName = 'utrecht-article';
File without changes
@@ -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.Backdrop = 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.Backdrop = react_1.forwardRef((_a, ref) => {
26
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
+ return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-backdrop', className) }, { children: children }), void 0));
28
+ });
29
+ exports.Backdrop.displayName = 'utrecht-backdrop';
@@ -1,6 +1,5 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
- interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
2
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
3
  busy?: boolean;
4
4
  }
5
5
  export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
6
- export {};
@@ -0,0 +1,25 @@
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.Button = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const clsx_1 = __importDefault(require("clsx"));
20
+ const react_1 = require("react");
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));
24
+ });
25
+ exports.Button.displayName = 'utrecht-button';
@@ -1,6 +1,5 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'readOnly'> {
2
+ export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'readOnly'> {
3
3
  invalid?: boolean;
4
4
  }
5
5
  export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
6
- export {};
@@ -0,0 +1,25 @@
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.Checkbox = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const clsx_1 = __importDefault(require("clsx"));
20
+ const react_1 = require("react");
21
+ exports.Checkbox = react_1.forwardRef((_a, ref) => {
22
+ var { disabled, invalid, required, className } = _a, restProps = __rest(_a, ["disabled", "invalid", "required", "className"]);
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
+ });
25
+ exports.Checkbox.displayName = 'utrecht-checkbox';
File without changes
@@ -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.Document = 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.Document = react_1.forwardRef((_a, ref) => {
26
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
+ return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-document', className) }, { children: children }), void 0));
28
+ });
29
+ exports.Document.displayName = 'utrecht-document';
@@ -1,4 +1,3 @@
1
1
  import { FieldsetHTMLAttributes } from 'react';
2
- declare type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>;
2
+ export declare type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>;
3
3
  export declare const Fieldset: import("react").ForwardRefExoticComponent<FieldsetProps & import("react").RefAttributes<HTMLFieldSetElement>>;
4
- export {};
@@ -0,0 +1,25 @@
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.Fieldset = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const clsx_1 = __importDefault(require("clsx"));
20
+ const react_1 = require("react");
21
+ exports.Fieldset = react_1.forwardRef((_a, ref) => {
22
+ var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
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
+ });
25
+ exports.Fieldset.displayName = 'utrecht-form-fieldset';
@@ -1,4 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- declare type FieldsetLegendProps = HTMLAttributes<HTMLLegendElement>;
2
+ export declare type FieldsetLegendProps = HTMLAttributes<HTMLLegendElement>;
3
3
  export declare const FieldsetLegend: import("react").ForwardRefExoticComponent<FieldsetLegendProps & import("react").RefAttributes<HTMLLegendElement>>;
4
- export {};
@@ -0,0 +1,25 @@
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.FieldsetLegend = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const clsx_1 = __importDefault(require("clsx"));
20
+ const react_1 = require("react");
21
+ exports.FieldsetLegend = react_1.forwardRef((_a, ref) => {
22
+ var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
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
+ });
25
+ exports.FieldsetLegend.displayName = 'utrecht-form-fieldset-legend';
@@ -1,4 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- declare type FormFieldProps = HTMLAttributes<HTMLDivElement>;
2
+ export declare type FormFieldProps = HTMLAttributes<HTMLDivElement>;
3
3
  export declare const FormField: import("react").ForwardRefExoticComponent<FormFieldProps & import("react").RefAttributes<HTMLDivElement>>;
4
- export {};
@@ -0,0 +1,25 @@
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.FormField = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const clsx_1 = __importDefault(require("clsx"));
20
+ const react_1 = require("react");
21
+ exports.FormField = react_1.forwardRef((_a, ref) => {
22
+ var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
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
+ });
25
+ exports.FormField.displayName = 'utrecht-form-field';
@@ -1,8 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
- interface FormFieldDescriptionProps extends HTMLAttributes<HTMLDivElement> {
2
+ export interface FormFieldDescriptionProps extends HTMLAttributes<HTMLDivElement> {
3
3
  invalid?: boolean;
4
4
  valid?: boolean;
5
5
  warning?: boolean;
6
6
  }
7
7
  export declare const FormFieldDescription: import("react").ForwardRefExoticComponent<FormFieldDescriptionProps & import("react").RefAttributes<HTMLDivElement>>;
8
- export {};
@@ -0,0 +1,25 @@
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.FormFieldDescription = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const clsx_1 = __importDefault(require("clsx"));
20
+ const react_1 = require("react");
21
+ exports.FormFieldDescription = react_1.forwardRef((_a, ref) => {
22
+ var { invalid, valid, warning, className, children } = _a, restProps = __rest(_a, ["invalid", "valid", "warning", "className", "children"]);
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
+ });
25
+ exports.FormFieldDescription.displayName = 'utrecht-form-field-description';
@@ -1,9 +1,8 @@
1
1
  import { LabelHTMLAttributes } from 'react';
2
- interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
2
+ export interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
3
3
  htmlFor: string;
4
4
  type?: 'checkbox' | 'radio';
5
5
  disabled?: boolean;
6
6
  checked?: boolean;
7
7
  }
8
8
  export declare const FormLabel: import("react").ForwardRefExoticComponent<FormLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
9
- export {};
@@ -0,0 +1,25 @@
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.FormLabel = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ const clsx_1 = __importDefault(require("clsx"));
20
+ const react_1 = require("react");
21
+ exports.FormLabel = react_1.forwardRef((_a, ref) => {
22
+ var { children, className, type, disabled, checked } = _a, restProps = __rest(_a, ["children", "className", "type", "disabled", "checked"]);
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
+ });
25
+ exports.FormLabel.displayName = 'utrecht-form-label';
File without changes
@@ -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.HTMLContent = 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.HTMLContent = react_1.forwardRef((_a, ref) => {
26
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
+ return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-html', className) }, { children: children }), void 0));
28
+ });
29
+ exports.HTMLContent.displayName = 'utrecht-html';
@@ -3,6 +3,5 @@
3
3
  * Copyright (c) 2021 Robbert Broersma
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
- declare type Heading1Props = HTMLAttributes<HTMLHeadingElement>;
6
+ export declare type Heading1Props = HTMLAttributes<HTMLHeadingElement>;
7
7
  export declare const Heading1: import("react").ForwardRefExoticComponent<Heading1Props & import("react").RefAttributes<HTMLHeadingElement>>;
8
- export {};
@@ -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.Heading1 = 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.Heading1 = react_1.forwardRef((_a, ref) => {
26
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
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
+ });
29
+ exports.Heading1.displayName = 'utrecht-heading-1';
@@ -3,6 +3,5 @@
3
3
  * Copyright (c) 2021 Robbert Broersma
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
- declare type Heading2Props = HTMLAttributes<HTMLHeadingElement>;
6
+ export declare type Heading2Props = HTMLAttributes<HTMLHeadingElement>;
7
7
  export declare const Heading2: import("react").ForwardRefExoticComponent<Heading2Props & import("react").RefAttributes<HTMLHeadingElement>>;
8
- export {};
@@ -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.Heading2 = 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.Heading2 = react_1.forwardRef((_a, ref) => {
26
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
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
+ });
29
+ exports.Heading2.displayName = 'utrecht-heading-2';
@@ -3,6 +3,5 @@
3
3
  * Copyright (c) 2021 Robbert Broersma
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
- declare type Heading3Props = HTMLAttributes<HTMLHeadingElement>;
6
+ export declare type Heading3Props = HTMLAttributes<HTMLHeadingElement>;
7
7
  export declare const Heading3: import("react").ForwardRefExoticComponent<Heading3Props & import("react").RefAttributes<HTMLHeadingElement>>;
8
- export {};
@@ -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.Heading3 = 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.Heading3 = react_1.forwardRef((_a, ref) => {
26
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
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
+ });
29
+ exports.Heading3.displayName = 'utrecht-heading-3';
@@ -3,6 +3,5 @@
3
3
  * Copyright (c) 2021 Robbert Broersma
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
- declare type Heading4Props = HTMLAttributes<HTMLHeadingElement>;
6
+ export declare type Heading4Props = HTMLAttributes<HTMLHeadingElement>;
7
7
  export declare const Heading4: import("react").ForwardRefExoticComponent<Heading4Props & import("react").RefAttributes<HTMLHeadingElement>>;
8
- export {};