@utrecht/component-library-react 1.0.0-alpha.3 → 1.0.0-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/Article.d.ts +1 -2
- package/dist/cjs/Button.d.ts +20 -2
- package/dist/cjs/Button.js +21 -3
- package/dist/cjs/ButtonLink.d.ts +15 -0
- package/dist/cjs/ButtonLink.js +52 -0
- package/dist/cjs/Checkbox.d.ts +1 -2
- package/dist/cjs/Fieldset.d.ts +1 -2
- package/dist/cjs/FieldsetLegend.d.ts +1 -2
- package/dist/cjs/FieldsetLegend.js +1 -1
- package/dist/cjs/FormField.d.ts +1 -2
- package/dist/cjs/FormFieldDescription.d.ts +1 -2
- package/dist/cjs/FormLabel.d.ts +1 -2
- package/dist/cjs/Heading1.d.ts +1 -2
- package/dist/cjs/Heading2.d.ts +1 -2
- package/dist/cjs/Heading3.d.ts +1 -2
- package/dist/cjs/Heading4.d.ts +1 -2
- package/dist/cjs/Heading5.d.ts +1 -2
- package/dist/cjs/Heading6.d.ts +1 -2
- package/dist/cjs/Link.d.ts +1 -2
- package/dist/cjs/OrderedList.d.ts +1 -2
- package/dist/cjs/OrderedListItem.d.ts +1 -2
- package/dist/cjs/OrderedListItem.js +1 -1
- package/dist/cjs/PageContent.d.ts +2 -3
- package/dist/cjs/PageContent.js +1 -1
- package/dist/cjs/Paragraph.d.ts +1 -2
- package/dist/cjs/RadioButton.d.ts +1 -2
- package/dist/cjs/Select.d.ts +2 -3
- package/dist/cjs/Separator.d.ts +1 -2
- package/dist/cjs/Table.d.ts +1 -2
- package/dist/cjs/TableBody.d.ts +1 -2
- package/dist/cjs/TableCaption.d.ts +1 -2
- package/dist/cjs/TableCell.d.ts +1 -2
- package/dist/cjs/TableFooter.d.ts +1 -2
- package/dist/cjs/TableHeader.d.ts +1 -2
- package/dist/cjs/TableHeaderCell.d.ts +1 -2
- package/dist/cjs/TableRow.d.ts +1 -2
- package/dist/cjs/Textarea.d.ts +1 -2
- package/dist/cjs/Textbox.d.ts +1 -2
- package/dist/cjs/UnorderedList.d.ts +1 -2
- package/dist/cjs/UnorderedListItem.js +1 -1
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1553 -135
- package/package.json +192 -50
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
|
|
48
|
+
import "@utrecht/component-library-css";
|
|
49
49
|
|
|
50
50
|
// Package with Utrecht design tokens for the white-label components
|
|
51
51
|
// Substitute with your another theme for other organisations.
|
|
52
|
-
import "@utrecht/design-tokens/dist/
|
|
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
|
package/dist/cjs/Article.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/cjs/Button.d.ts
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
appearance?: string;
|
|
3
4
|
busy?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
export {
|
|
7
|
+
export declare const PrimaryActionButton: {
|
|
8
|
+
({ ...args }: {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const SecondaryActionButton: {
|
|
14
|
+
({ ...args }: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const SubtleButton: {
|
|
20
|
+
({ ...args }: {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
}): JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
package/dist/cjs/Button.js
CHANGED
|
@@ -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
25
|
exports.Button.displayName = 'utrecht-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 = 'utrecht-primary-action-button';
|
|
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 = 'utrecht-secondary-action-button';
|
|
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 = 'utrecht-subtle-button';
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
focusStyle?: boolean;
|
|
10
|
+
focusVisibleStyle?: boolean;
|
|
11
|
+
hoverStyle?: boolean;
|
|
12
|
+
visitedStyle?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ButtonLink: import("react").ForwardRefExoticComponent<ButtonLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
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, focusStyle, focusVisibleStyle, hoverStyle, role } = _a, restProps = __rest(_a, ["children", "className", "external", "focusStyle", "focusVisibleStyle", "hoverStyle", "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', {
|
|
46
|
+
'utrecht-button-link--external': external,
|
|
47
|
+
'utrecht-button-link--focus': focusStyle,
|
|
48
|
+
'utrecht-button-link--focus-visible': focusVisibleStyle,
|
|
49
|
+
'utrecht-button-link--hover': hoverStyle,
|
|
50
|
+
}, className), rel: external ? 'external noopener noreferrer' : undefined }, { children: children }), void 0));
|
|
51
|
+
});
|
|
52
|
+
exports.ButtonLink.displayName = 'utrecht-button-link';
|
package/dist/cjs/Checkbox.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/cjs/Fieldset.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -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 {};
|
|
@@ -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-
|
|
25
|
+
exports.FieldsetLegend.displayName = 'utrecht-form-fieldset-legend';
|
package/dist/cjs/FormField.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -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 {};
|
package/dist/cjs/FormLabel.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/cjs/Heading1.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/cjs/Heading2.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/cjs/Heading3.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/cjs/Heading4.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/cjs/Heading5.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type Heading5Props = HTMLAttributes<HTMLHeadingElement>;
|
|
6
|
+
export declare type Heading5Props = HTMLAttributes<HTMLHeadingElement>;
|
|
7
7
|
export declare const Heading5: import("react").ForwardRefExoticComponent<Heading5Props & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
8
|
-
export {};
|
package/dist/cjs/Heading6.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type Heading6Props = HTMLAttributes<HTMLHeadingElement>;
|
|
6
|
+
export declare type Heading6Props = HTMLAttributes<HTMLHeadingElement>;
|
|
7
7
|
export declare const Heading6: import("react").ForwardRefExoticComponent<Heading6Props & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
8
|
-
export {};
|
package/dist/cjs/Link.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright (c) 2021 Robbert Broersma
|
|
5
5
|
*/
|
|
6
6
|
import { AnchorHTMLAttributes } from 'react';
|
|
7
|
-
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
7
|
+
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
8
8
|
activeStyle?: boolean;
|
|
9
9
|
external?: boolean;
|
|
10
10
|
focusStyle?: boolean;
|
|
@@ -13,4 +13,3 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
13
13
|
visitedStyle?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
16
|
-
export {};
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { OlHTMLAttributes } from 'react';
|
|
6
|
-
declare type OrderedListProps = OlHTMLAttributes<HTMLOListElement>;
|
|
6
|
+
export declare type OrderedListProps = OlHTMLAttributes<HTMLOListElement>;
|
|
7
7
|
export declare const OrderedList: import("react").ForwardRefExoticComponent<OrderedListProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
8
|
-
export {};
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { LiHTMLAttributes } from 'react';
|
|
6
|
-
declare type OrderedListItemProps = LiHTMLAttributes<HTMLLIElement>;
|
|
6
|
+
export declare type OrderedListItemProps = LiHTMLAttributes<HTMLLIElement>;
|
|
7
7
|
export declare const OrderedListItem: import("react").ForwardRefExoticComponent<OrderedListItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
8
|
-
export {};
|
|
@@ -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-
|
|
29
|
+
exports.OrderedListItem.displayName = 'utrecht-ordered-list-item';
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type PageContentProps = HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare type PageContentProps = HTMLAttributes<HTMLDivElement>;
|
|
7
7
|
export declare const PageContent: import("react").ForwardRefExoticComponent<PageContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare type PageContentMainProps = HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare type PageContentMainProps = HTMLAttributes<HTMLDivElement>;
|
|
9
9
|
export declare const PageContentMain: import("react").ForwardRefExoticComponent<PageContentMainProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export {};
|
package/dist/cjs/PageContent.js
CHANGED
|
@@ -31,4 +31,4 @@ 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-
|
|
34
|
+
exports.PageContentMain.displayName = 'utrecht-page-content-main';
|
package/dist/cjs/Paragraph.d.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
6
|
+
export interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
7
7
|
lead?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const Paragraph: import("react").ForwardRefExoticComponent<ParagraphProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
10
|
-
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'readOnly'> {
|
|
2
|
+
export interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'readOnly'> {
|
|
3
3
|
invalid?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare const RadioButton: import("react").ForwardRefExoticComponent<RadioButtonProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
-
export {};
|
package/dist/cjs/Select.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { OptionHTMLAttributes, SelectHTMLAttributes } from 'react';
|
|
2
|
-
interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
2
|
+
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
3
|
invalid?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
6
|
-
interface SelectOptionProps extends OptionHTMLAttributes<HTMLOptionElement> {
|
|
6
|
+
export interface SelectOptionProps extends OptionHTMLAttributes<HTMLOptionElement> {
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
invalid?: boolean;
|
|
9
9
|
value?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const SelectOption: import("react").ForwardRefExoticComponent<SelectOptionProps & import("react").RefAttributes<HTMLOptionElement>>;
|
|
12
|
-
export {};
|
package/dist/cjs/Separator.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type SeparatorProps = HTMLAttributes<HTMLHRElement>;
|
|
6
|
+
export declare type SeparatorProps = HTMLAttributes<HTMLHRElement>;
|
|
7
7
|
export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLHRElement>>;
|
|
8
|
-
export {};
|
package/dist/cjs/Table.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2022 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { TableHTMLAttributes } from 'react';
|
|
6
|
-
declare type TableProps = TableHTMLAttributes<HTMLTableElement>;
|
|
6
|
+
export declare type TableProps = TableHTMLAttributes<HTMLTableElement>;
|
|
7
7
|
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
8
|
-
export {};
|
package/dist/cjs/TableBody.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2022 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
6
|
+
export declare type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
7
7
|
export declare const TableBody: import("react").ForwardRefExoticComponent<TableBodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
-
export {};
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2022 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
|
|
6
|
+
export declare type TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
|
|
7
7
|
export declare const TableCaption: import("react").ForwardRefExoticComponent<TableCaptionProps & import("react").RefAttributes<HTMLTableCaptionElement>>;
|
|
8
|
-
export {};
|
package/dist/cjs/TableCell.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2022 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { TdHTMLAttributes } from 'react';
|
|
6
|
-
declare type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
|
|
6
|
+
export declare type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
|
|
7
7
|
export declare const TableCell: import("react").ForwardRefExoticComponent<TableCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
8
|
-
export {};
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2022 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type TableFooterProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
6
|
+
export declare type TableFooterProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
7
7
|
export declare const TableFooter: import("react").ForwardRefExoticComponent<TableFooterProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
-
export {};
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2022 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
6
|
+
export declare type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
7
7
|
export declare const TableHeader: import("react").ForwardRefExoticComponent<TableHeaderProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
-
export {};
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2022 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { ThHTMLAttributes } from 'react';
|
|
6
|
-
declare type TableHeaderCellProps = ThHTMLAttributes<HTMLTableCellElement>;
|
|
6
|
+
export declare type TableHeaderCellProps = ThHTMLAttributes<HTMLTableCellElement>;
|
|
7
7
|
export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<TableHeaderCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
8
|
-
export {};
|
package/dist/cjs/TableRow.d.ts
CHANGED
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2022 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
|
|
6
|
+
export declare type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
|
|
7
7
|
export declare const TableRow: import("react").ForwardRefExoticComponent<TableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
8
|
-
export {};
|
package/dist/cjs/Textarea.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
-
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
2
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
3
|
invalid?: boolean;
|
|
4
4
|
}
|
|
5
5
|
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
6
|
-
export {};
|
package/dist/cjs/Textbox.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
export declare type TextboxTypes = 'email' | 'number' | 'password' | 'tel' | 'text' | 'url';
|
|
3
|
-
interface TextboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
export interface TextboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
invalid?: boolean;
|
|
5
5
|
type?: TextboxTypes;
|
|
6
6
|
}
|
|
7
7
|
export declare const Textbox: import("react").ForwardRefExoticComponent<TextboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
8
|
-
export {};
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
|
-
declare type UnorderedListProps = HTMLAttributes<HTMLUListElement>;
|
|
6
|
+
export declare type UnorderedListProps = HTMLAttributes<HTMLUListElement>;
|
|
7
7
|
export declare const UnorderedList: import("react").ForwardRefExoticComponent<UnorderedListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
8
|
-
export {};
|
|
@@ -26,4 +26,4 @@ exports.UnorderedListItem = 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-unordered-list__item', className) }, { children: children }), void 0));
|
|
28
28
|
});
|
|
29
|
-
exports.UnorderedListItem.displayName = 'utrecht-unordered-
|
|
29
|
+
exports.UnorderedListItem.displayName = 'utrecht-unordered-list-item';
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { Article } from './Article';
|
|
6
6
|
export { Backdrop } from './Backdrop';
|
|
7
|
-
export { Button } from './Button';
|
|
7
|
+
export { Button, PrimaryActionButton, SecondaryActionButton, SubtleButton } from './Button';
|
|
8
|
+
export { ButtonLink } from './ButtonLink';
|
|
8
9
|
export { Checkbox } from './Checkbox';
|
|
9
10
|
export { Document } from './Document';
|
|
10
11
|
export { Fieldset } from './Fieldset';
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,13 +4,18 @@
|
|
|
4
4
|
* Copyright (c) 2022 Robbert Broersma
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.UnorderedListItem = exports.UnorderedList = exports.URLValue = exports.Textbox = exports.Textarea = exports.TableRow = exports.TableHeaderCell = exports.TableHeader = exports.TableFooter = exports.TableCell = exports.TableCaption = exports.TableBody = exports.Table = exports.Surface = exports.Separator = exports.SelectOption = exports.Select = exports.RadioButton = exports.Paragraph = exports.PageHeader = exports.PageFooter = exports.PageContent = exports.Page = exports.OrderedListItem = exports.OrderedList = exports.Link = exports.Heading6 = exports.Heading5 = exports.Heading4 = exports.Heading3 = exports.Heading2 = exports.Heading1 = exports.HTMLContent = exports.FormLabel = exports.FormFieldDescription = exports.FormField = exports.FieldsetLegend = exports.Fieldset = exports.Document = exports.Checkbox = exports.Button = exports.Backdrop = exports.Article = void 0;
|
|
7
|
+
exports.UnorderedListItem = exports.UnorderedList = exports.URLValue = exports.Textbox = exports.Textarea = exports.TableRow = exports.TableHeaderCell = exports.TableHeader = exports.TableFooter = exports.TableCell = exports.TableCaption = exports.TableBody = exports.Table = exports.Surface = exports.Separator = exports.SelectOption = exports.Select = exports.RadioButton = exports.Paragraph = exports.PageHeader = exports.PageFooter = exports.PageContent = exports.Page = exports.OrderedListItem = exports.OrderedList = exports.Link = exports.Heading6 = exports.Heading5 = exports.Heading4 = exports.Heading3 = exports.Heading2 = exports.Heading1 = exports.HTMLContent = exports.FormLabel = exports.FormFieldDescription = exports.FormField = exports.FieldsetLegend = exports.Fieldset = exports.Document = exports.Checkbox = exports.ButtonLink = exports.SubtleButton = exports.SecondaryActionButton = exports.PrimaryActionButton = exports.Button = exports.Backdrop = exports.Article = void 0;
|
|
8
8
|
var Article_1 = require("./Article");
|
|
9
9
|
Object.defineProperty(exports, "Article", { enumerable: true, get: function () { return Article_1.Article; } });
|
|
10
10
|
var Backdrop_1 = require("./Backdrop");
|
|
11
11
|
Object.defineProperty(exports, "Backdrop", { enumerable: true, get: function () { return Backdrop_1.Backdrop; } });
|
|
12
12
|
var Button_1 = require("./Button");
|
|
13
13
|
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
14
|
+
Object.defineProperty(exports, "PrimaryActionButton", { enumerable: true, get: function () { return Button_1.PrimaryActionButton; } });
|
|
15
|
+
Object.defineProperty(exports, "SecondaryActionButton", { enumerable: true, get: function () { return Button_1.SecondaryActionButton; } });
|
|
16
|
+
Object.defineProperty(exports, "SubtleButton", { enumerable: true, get: function () { return Button_1.SubtleButton; } });
|
|
17
|
+
var ButtonLink_1 = require("./ButtonLink");
|
|
18
|
+
Object.defineProperty(exports, "ButtonLink", { enumerable: true, get: function () { return ButtonLink_1.ButtonLink; } });
|
|
14
19
|
var Checkbox_1 = require("./Checkbox");
|
|
15
20
|
Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return Checkbox_1.Checkbox; } });
|
|
16
21
|
var Document_1 = require("./Document");
|