@utrecht/component-library-react 1.0.0-alpha.100 → 1.0.0-alpha.101
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/dist/cjs/ButtonLink.d.ts
CHANGED
|
@@ -6,10 +6,6 @@
|
|
|
6
6
|
import { AnchorHTMLAttributes } from 'react';
|
|
7
7
|
interface ButtonLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
8
8
|
external?: boolean;
|
|
9
|
-
focusStyle?: boolean;
|
|
10
|
-
focusVisibleStyle?: boolean;
|
|
11
|
-
hoverStyle?: boolean;
|
|
12
|
-
visitedStyle?: boolean;
|
|
13
9
|
}
|
|
14
10
|
export declare const ButtonLink: import("react").ForwardRefExoticComponent<ButtonLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
15
11
|
export {};
|
package/dist/cjs/ButtonLink.js
CHANGED
|
@@ -33,7 +33,7 @@ const onKeyDown = (evt) => {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
exports.ButtonLink = react_1.forwardRef((_a, ref) => {
|
|
36
|
-
var { children, className, external,
|
|
36
|
+
var { children, className, external, role } = _a, restProps = __rest(_a, ["children", "className", "external", "role"]);
|
|
37
37
|
let props = restProps;
|
|
38
38
|
if (role === 'button') {
|
|
39
39
|
// When this link is announced as button by accessibility tools,
|
|
@@ -42,11 +42,6 @@ exports.ButtonLink = react_1.forwardRef((_a, ref) => {
|
|
|
42
42
|
// to reach parity with the `button` element.
|
|
43
43
|
props = Object.assign(Object.assign({}, restProps), { onKeyDown });
|
|
44
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));
|
|
45
|
+
return (jsx_runtime_1.jsx("a", Object.assign({}, props, { ref: ref, role: role, className: clsx_1.default('utrecht-button-link', 'utrecht-button-link--html-button', { 'utrecht-button-link--external': external }, className), rel: external ? 'external noopener noreferrer' : undefined }, { children: children }), void 0));
|
|
51
46
|
});
|
|
52
47
|
exports.ButtonLink.displayName = 'ButtonLink';
|
|
@@ -247,8 +247,8 @@
|
|
|
247
247
|
"affectsGlobalScope": false
|
|
248
248
|
},
|
|
249
249
|
"../../src/ButtonLink.tsx": {
|
|
250
|
-
"version": "
|
|
251
|
-
"signature": "
|
|
250
|
+
"version": "7c63627202382e76b9994bb5b2a22d9d01e8bb30eca2be5ff2627650c5d3e6fc",
|
|
251
|
+
"signature": "f673656c10a96499774be1103a847d59553a908e6e4aaecb95026b01b2381d2d",
|
|
252
252
|
"affectsGlobalScope": false
|
|
253
253
|
},
|
|
254
254
|
"../../src/Checkbox.tsx": {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-alpha.
|
|
2
|
+
"version": "1.0.0-alpha.101",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -373,5 +373,5 @@
|
|
|
373
373
|
"react": "^17.0.0",
|
|
374
374
|
"react-dom": "^17.0.0"
|
|
375
375
|
},
|
|
376
|
-
"gitHead": "
|
|
376
|
+
"gitHead": "81ae1c76defbe6e76465a3bc4efe94ccd5a4941d"
|
|
377
377
|
}
|