@utrecht/component-library-react 1.0.0-alpha.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.
Files changed (90) hide show
  1. package/LICENSE.md +288 -0
  2. package/README.md +123 -0
  3. package/dist/Article.d.ts +8 -0
  4. package/dist/Article.js +23 -0
  5. package/dist/Backdrop.d.ts +7 -0
  6. package/dist/Backdrop.js +23 -0
  7. package/dist/Button.d.ts +6 -0
  8. package/dist/Button.js +19 -0
  9. package/dist/Checkbox.d.ts +6 -0
  10. package/dist/Checkbox.js +19 -0
  11. package/dist/Document.d.ts +7 -0
  12. package/dist/Document.js +23 -0
  13. package/dist/Fieldset.d.ts +4 -0
  14. package/dist/Fieldset.js +19 -0
  15. package/dist/FieldsetLegend.d.ts +4 -0
  16. package/dist/FieldsetLegend.js +19 -0
  17. package/dist/FormField.d.ts +4 -0
  18. package/dist/FormField.js +19 -0
  19. package/dist/FormFieldDescription.d.ts +8 -0
  20. package/dist/FormFieldDescription.js +19 -0
  21. package/dist/FormLabel.d.ts +9 -0
  22. package/dist/FormLabel.js +19 -0
  23. package/dist/HTMLContent.d.ts +7 -0
  24. package/dist/HTMLContent.js +23 -0
  25. package/dist/Heading1.d.ts +8 -0
  26. package/dist/Heading1.js +23 -0
  27. package/dist/Heading2.d.ts +8 -0
  28. package/dist/Heading2.js +23 -0
  29. package/dist/Heading3.d.ts +8 -0
  30. package/dist/Heading3.js +23 -0
  31. package/dist/Heading4.d.ts +8 -0
  32. package/dist/Heading4.js +23 -0
  33. package/dist/Heading5.d.ts +8 -0
  34. package/dist/Heading5.js +23 -0
  35. package/dist/Heading6.d.ts +8 -0
  36. package/dist/Heading6.js +23 -0
  37. package/dist/Link.d.ts +16 -0
  38. package/dist/Link.js +36 -0
  39. package/dist/OrderedList.d.ts +8 -0
  40. package/dist/OrderedList.js +23 -0
  41. package/dist/OrderedListItem.d.ts +8 -0
  42. package/dist/OrderedListItem.js +23 -0
  43. package/dist/Page.d.ts +7 -0
  44. package/dist/Page.js +23 -0
  45. package/dist/PageContent.d.ts +10 -0
  46. package/dist/PageContent.js +28 -0
  47. package/dist/PageFooter.d.ts +7 -0
  48. package/dist/PageFooter.js +23 -0
  49. package/dist/PageHeader.d.ts +7 -0
  50. package/dist/PageHeader.js +23 -0
  51. package/dist/Paragraph.d.ts +10 -0
  52. package/dist/Paragraph.js +23 -0
  53. package/dist/RadioButton.d.ts +6 -0
  54. package/dist/RadioButton.js +19 -0
  55. package/dist/Select.d.ts +12 -0
  56. package/dist/Select.js +25 -0
  57. package/dist/Separator.d.ts +8 -0
  58. package/dist/Separator.js +24 -0
  59. package/dist/Surface.d.ts +7 -0
  60. package/dist/Surface.js +23 -0
  61. package/dist/Table.d.ts +8 -0
  62. package/dist/Table.js +23 -0
  63. package/dist/TableBody.d.ts +8 -0
  64. package/dist/TableBody.js +23 -0
  65. package/dist/TableCaption.d.ts +8 -0
  66. package/dist/TableCaption.js +23 -0
  67. package/dist/TableCell.d.ts +8 -0
  68. package/dist/TableCell.js +23 -0
  69. package/dist/TableFooter.d.ts +8 -0
  70. package/dist/TableFooter.js +23 -0
  71. package/dist/TableHeader.d.ts +8 -0
  72. package/dist/TableHeader.js +23 -0
  73. package/dist/TableHeaderCell.d.ts +8 -0
  74. package/dist/TableHeaderCell.js +23 -0
  75. package/dist/TableRow.d.ts +8 -0
  76. package/dist/TableRow.js +23 -0
  77. package/dist/Textarea.d.ts +6 -0
  78. package/dist/Textarea.js +19 -0
  79. package/dist/Textbox.d.ts +8 -0
  80. package/dist/Textbox.js +19 -0
  81. package/dist/URLValue.d.ts +7 -0
  82. package/dist/URLValue.js +23 -0
  83. package/dist/UnorderedList.d.ts +8 -0
  84. package/dist/UnorderedList.js +23 -0
  85. package/dist/UnorderedListItem.d.ts +7 -0
  86. package/dist/UnorderedListItem.js +23 -0
  87. package/dist/index.d.ts +46 -0
  88. package/dist/index.js +46 -0
  89. package/dist/tsconfig.tsbuildinfo +2533 -0
  90. package/package.json +52 -0
@@ -0,0 +1,12 @@
1
+ import { OptionHTMLAttributes, SelectHTMLAttributes } from 'react';
2
+ interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
3
+ invalid?: boolean;
4
+ }
5
+ export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
6
+ interface SelectOptionProps extends OptionHTMLAttributes<HTMLOptionElement> {
7
+ disabled?: boolean;
8
+ invalid?: boolean;
9
+ value?: string;
10
+ }
11
+ export declare const SelectOption: import("react").ForwardRefExoticComponent<SelectOptionProps & import("react").RefAttributes<HTMLOptionElement>>;
12
+ export {};
package/dist/Select.js ADDED
@@ -0,0 +1,25 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import clsx from 'clsx';
14
+ import { forwardRef } from 'react';
15
+ export const Select = forwardRef((_a, ref) => {
16
+ var { disabled, invalid, required, className, children } = _a, restProps = __rest(_a, ["disabled", "invalid", "required", "className", "children"]);
17
+ const noscript = true;
18
+ return (_jsx("select", Object.assign({}, restProps, { ref: ref, "aria-invalid": invalid || undefined, disabled: disabled, required: noscript ? required : false, "aria-required": noscript ? undefined : required, className: clsx('utrecht-select', disabled && 'utrecht-select--disabled', invalid && 'utrecht-select--invalid', required && 'utrecht-select--required', className) }, { children: children }), void 0));
19
+ });
20
+ Select.displayName = 'utrecht-radio-button';
21
+ export const SelectOption = forwardRef((_a, ref) => {
22
+ var { disabled, invalid, value, children, className } = _a, restProps = __rest(_a, ["disabled", "invalid", "value", "children", "className"]);
23
+ return (_jsx("option", Object.assign({}, restProps, { ref: ref, disabled: disabled, value: value, className: clsx('utrecht-select__option', disabled && 'utrecht-select__option--disabled', invalid && 'utrecht-select__option--invalid', className) }, { children: children }), void 0));
24
+ });
25
+ SelectOption.displayName = 'utrecht-select-option';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type SeparatorProps = HTMLAttributes<HTMLHRElement>;
7
+ export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLHRElement>>;
8
+ export {};
@@ -0,0 +1,24 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2021 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ // Do not pass `children` along with `restProps` and use _children as it's unused
20
+ export const Separator = forwardRef((_a, ref) => {
21
+ var { className, children: _children } = _a, restProps = __rest(_a, ["className", "children"]);
22
+ return (_jsx("hr", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-separator', className) }), void 0));
23
+ });
24
+ Separator.displayName = 'utrecht-separator';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ export declare type SurfaceProps = HTMLAttributes<HTMLDivElement>;
7
+ export declare const Surface: import("react").ForwardRefExoticComponent<SurfaceProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2021 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const Surface = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-surface', className) }, { children: children }), void 0));
22
+ });
23
+ Surface.displayName = 'utrecht-surface';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { TableHTMLAttributes } from 'react';
6
+ declare type TableProps = TableHTMLAttributes<HTMLTableElement>;
7
+ export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
8
+ export {};
package/dist/Table.js ADDED
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2022 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const Table = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("table", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-table', className) }, { children: children }), void 0));
22
+ });
23
+ Table.displayName = 'utrecht-table';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
7
+ export declare const TableBody: import("react").ForwardRefExoticComponent<TableBodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2022 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const TableBody = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("tbody", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-table__body', className) }, { children: children }), void 0));
22
+ });
23
+ TableBody.displayName = 'utrecht-table-body';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
7
+ export declare const TableCaption: import("react").ForwardRefExoticComponent<TableCaptionProps & import("react").RefAttributes<HTMLTableCaptionElement>>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2022 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const TableCaption = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("caption", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-table__caption', className) }, { children: children }), void 0));
22
+ });
23
+ TableCaption.displayName = 'utrecht-table-caption';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { TdHTMLAttributes } from 'react';
6
+ declare type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
7
+ export declare const TableCell: import("react").ForwardRefExoticComponent<TableCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2022 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const TableCell = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("td", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-table__cell', className) }, { children: children }), void 0));
22
+ });
23
+ TableCell.displayName = 'utrecht-table-cell';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type TableFooterProps = HTMLAttributes<HTMLTableSectionElement>;
7
+ export declare const TableFooter: import("react").ForwardRefExoticComponent<TableFooterProps & import("react").RefAttributes<HTMLTableSectionElement>>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2022 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const TableFooter = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("tfoot", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-table__footer', className) }, { children: children }), void 0));
22
+ });
23
+ TableFooter.displayName = 'utrecht-table-footer';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
7
+ export declare const TableHeader: import("react").ForwardRefExoticComponent<TableHeaderProps & import("react").RefAttributes<HTMLTableSectionElement>>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2022 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const TableHeader = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("thead", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-table__header', className) }, { children: children }), void 0));
22
+ });
23
+ TableHeader.displayName = 'utrecht-table-header';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { ThHTMLAttributes } from 'react';
6
+ declare type TableHeaderCellProps = ThHTMLAttributes<HTMLTableCellElement>;
7
+ export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<TableHeaderCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2022 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const TableHeaderCell = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("th", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-table__header-cell', className) }, { children: children }), void 0));
22
+ });
23
+ TableHeaderCell.displayName = 'utrecht-table-header-cell';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
7
+ export declare const TableRow: import("react").ForwardRefExoticComponent<TableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2022 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const TableRow = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("tr", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-table__row', className) }, { children: children }), void 0));
22
+ });
23
+ TableRow.displayName = 'utrecht-table-row';
@@ -0,0 +1,6 @@
1
+ import { TextareaHTMLAttributes } from 'react';
2
+ interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ invalid?: boolean;
4
+ }
5
+ export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
6
+ export {};
@@ -0,0 +1,19 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import clsx from 'clsx';
14
+ import { forwardRef } from 'react';
15
+ export const Textarea = forwardRef((_a, ref) => {
16
+ var { disabled, invalid, readOnly, required, className } = _a, restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className"]);
17
+ return (_jsx("textarea", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-textarea', 'utrecht-textarea--html-textarea', disabled && 'utrecht-textarea--disabled', invalid && 'utrecht-textarea--invalid', readOnly && 'utrecht-textarea--readonly', required && 'utrecht-textarea--required', className), disabled: disabled, readOnly: readOnly, required: required, "aria-invalid": invalid || undefined }), void 0));
18
+ });
19
+ Textarea.displayName = 'utrecht-textarea';
@@ -0,0 +1,8 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export declare type TextboxTypes = 'email' | 'number' | 'password' | 'tel' | 'text' | 'url';
3
+ interface TextboxProps extends InputHTMLAttributes<HTMLInputElement> {
4
+ invalid?: boolean;
5
+ type?: TextboxTypes;
6
+ }
7
+ export declare const Textbox: import("react").ForwardRefExoticComponent<TextboxProps & import("react").RefAttributes<HTMLInputElement>>;
8
+ export {};
@@ -0,0 +1,19 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import clsx from 'clsx';
14
+ import { forwardRef } from 'react';
15
+ export const Textbox = forwardRef((_a, ref) => {
16
+ var { disabled, invalid, readOnly, required, className, type = 'text', maxLength, inputMode } = _a, restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className", "type", "maxLength", "inputMode"]);
17
+ return (_jsx("input", Object.assign({}, restProps, { ref: ref, type: type, className: clsx('utrecht-textbox', 'utrecht-textbox--html-input', type === 'email' && 'utrecht-textbox--url', type === 'password' && 'utrecht-textbox--password', type === 'number' && 'utrecht-textbox--numeric', type === 'tel' && 'utrecht-textbox--numeric', type === 'url' && 'utrecht-textbox--url', inputMode === 'numeric' && 'utrecht-textbox--numeric', disabled && 'utrecht-textbox--disabled', invalid && 'utrecht-textbox--invalid', readOnly && 'utrecht-textbox--readonly', required && 'utrecht-textbox--required', className), maxLength: maxLength, disabled: disabled, readOnly: readOnly, required: required, "aria-invalid": invalid || undefined, inputMode: inputMode || (type === 'number' ? 'numeric' : undefined) }), void 0));
18
+ });
19
+ Textbox.displayName = 'utrecht-textbox';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ export declare type URLValueProps = HTMLAttributes<HTMLElement>;
7
+ export declare const URLValue: import("react").ForwardRefExoticComponent<URLValueProps & import("react").RefAttributes<HTMLElement>>;
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2021 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const URLValue = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("bdi", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-url', className) }, { children: children }), void 0));
22
+ });
23
+ URLValue.displayName = 'utrecht-url';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type UnorderedListProps = HTMLAttributes<HTMLUListElement>;
7
+ export declare const UnorderedList: import("react").ForwardRefExoticComponent<UnorderedListProps & import("react").RefAttributes<HTMLUListElement>>;
8
+ export {};
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2021 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const UnorderedList = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("ul", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-unordered-list', className) }, { children: children }), void 0));
22
+ });
23
+ UnorderedList.displayName = 'utrecht-unordered-list';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { LiHTMLAttributes } from 'react';
6
+ export declare type UnorderedListItemProps = LiHTMLAttributes<HTMLLIElement>;
7
+ export declare const UnorderedListItem: import("react").ForwardRefExoticComponent<UnorderedListItemProps & import("react").RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,23 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ /**
14
+ * @license EUPL-1.2
15
+ * Copyright (c) 2021 Robbert Broersma
16
+ */
17
+ import clsx from 'clsx';
18
+ import { forwardRef } from 'react';
19
+ export const UnorderedListItem = forwardRef((_a, ref) => {
20
+ var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
21
+ return (_jsx("li", Object.assign({}, restProps, { ref: ref, className: clsx('utrecht-unordered-list__item', className) }, { children: children }), void 0));
22
+ });
23
+ UnorderedListItem.displayName = 'utrecht-unordered-list__item';
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ export { Article } from './Article';
6
+ export { Backdrop } from './Backdrop';
7
+ export { Button } from './Button';
8
+ export { Checkbox } from './Checkbox';
9
+ export { Document } from './Document';
10
+ export { Fieldset } from './Fieldset';
11
+ export { FieldsetLegend } from './FieldsetLegend';
12
+ export { FormField } from './FormField';
13
+ export { FormFieldDescription } from './FormFieldDescription';
14
+ export { FormLabel } from './FormLabel';
15
+ export { HTMLContent } from './HTMLContent';
16
+ export { Heading1 } from './Heading1';
17
+ export { Heading2 } from './Heading2';
18
+ export { Heading3 } from './Heading3';
19
+ export { Heading4 } from './Heading4';
20
+ export { Heading5 } from './Heading5';
21
+ export { Heading6 } from './Heading6';
22
+ export { Link } from './Link';
23
+ export { OrderedList } from './OrderedList';
24
+ export { OrderedListItem } from './OrderedListItem';
25
+ export { Page } from './Page';
26
+ export { PageContent } from './PageContent';
27
+ export { PageFooter } from './PageFooter';
28
+ export { PageHeader } from './PageHeader';
29
+ export { Paragraph } from './Paragraph';
30
+ export { RadioButton } from './RadioButton';
31
+ export { Select, SelectOption } from './Select';
32
+ export { Separator } from './Separator';
33
+ export { Surface } from './Surface';
34
+ export { Table } from './Table';
35
+ export { TableBody } from './TableBody';
36
+ export { TableCaption } from './TableCaption';
37
+ export { TableCell } from './TableCell';
38
+ export { TableFooter } from './TableFooter';
39
+ export { TableHeader } from './TableHeader';
40
+ export { TableHeaderCell } from './TableHeaderCell';
41
+ export { TableRow } from './TableRow';
42
+ export { Textarea } from './Textarea';
43
+ export { Textbox } from './Textbox';
44
+ export { URLValue } from './URLValue';
45
+ export { UnorderedList } from './UnorderedList';
46
+ export { UnorderedListItem } from './UnorderedListItem';
package/dist/index.js ADDED
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ export { Article } from './Article';
6
+ export { Backdrop } from './Backdrop';
7
+ export { Button } from './Button';
8
+ export { Checkbox } from './Checkbox';
9
+ export { Document } from './Document';
10
+ export { Fieldset } from './Fieldset';
11
+ export { FieldsetLegend } from './FieldsetLegend';
12
+ export { FormField } from './FormField';
13
+ export { FormFieldDescription } from './FormFieldDescription';
14
+ export { FormLabel } from './FormLabel';
15
+ export { HTMLContent } from './HTMLContent';
16
+ export { Heading1 } from './Heading1';
17
+ export { Heading2 } from './Heading2';
18
+ export { Heading3 } from './Heading3';
19
+ export { Heading4 } from './Heading4';
20
+ export { Heading5 } from './Heading5';
21
+ export { Heading6 } from './Heading6';
22
+ export { Link } from './Link';
23
+ export { OrderedList } from './OrderedList';
24
+ export { OrderedListItem } from './OrderedListItem';
25
+ export { Page } from './Page';
26
+ export { PageContent } from './PageContent';
27
+ export { PageFooter } from './PageFooter';
28
+ export { PageHeader } from './PageHeader';
29
+ export { Paragraph } from './Paragraph';
30
+ export { RadioButton } from './RadioButton';
31
+ export { Select, SelectOption } from './Select';
32
+ export { Separator } from './Separator';
33
+ export { Surface } from './Surface';
34
+ export { Table } from './Table';
35
+ export { TableBody } from './TableBody';
36
+ export { TableCaption } from './TableCaption';
37
+ export { TableCell } from './TableCell';
38
+ export { TableFooter } from './TableFooter';
39
+ export { TableHeader } from './TableHeader';
40
+ export { TableHeaderCell } from './TableHeaderCell';
41
+ export { TableRow } from './TableRow';
42
+ export { Textarea } from './Textarea';
43
+ export { Textbox } from './Textbox';
44
+ export { URLValue } from './URLValue';
45
+ export { UnorderedList } from './UnorderedList';
46
+ export { UnorderedListItem } from './UnorderedListItem';