@apolitical/component-library 1.9.1 → 1.9.2
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/{4TNE5QTO-eb76e362.js → 4TNE5QTO-80ea09b3.js} +1 -1
- package/{4TNE5QTO-dd7cd869.mjs → 4TNE5QTO-a7c3a370.mjs} +1 -1
- package/constants/contact-details.d.ts +8 -0
- package/constants/index.d.ts +1 -0
- package/general/link/link.d.ts +7 -1
- package/{index-3f338a92.mjs → index-ad400da7.mjs} +4959 -4864
- package/index-b0222665.js +101 -0
- package/index.js +1 -1
- package/index.mjs +61 -59
- package/navigation/index.d.ts +1 -0
- package/navigation/language-switcher/index.d.ts +1 -0
- package/navigation/language-switcher/language-switcher.d.ts +37 -0
- package/navigation/language-switcher/language-switcher.helpers.d.ts +2 -0
- package/navigation/language-switcher/language-switcher.mock.d.ts +29 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/_theme.scss +5 -0
- package/index-2a6346e1.js +0 -101
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Zi = Object.defineProperty;
|
|
2
2
|
var Ji = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Or = (e, t, n) => (Ji(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { d as $n, c as K, a as I, b as p, e as z, i as A, f as U, o as qe, g as pt, s as es, m as G, h as V, u as Oe, t as P, S as j, j as F, k as Kn, l as Ee, F as Ao, $ as Ye, n as gn, p as _o, q as ts, r as X, v as at, P as ns, w as Fe, I as rs, x as Gt, y as Fr, D as _n, z as os, A as is, M as On, B as ss, C as as, E as ls } from "./index-
|
|
4
|
+
import { d as $n, c as K, a as I, b as p, e as z, i as A, f as U, o as qe, g as pt, s as es, m as G, h as V, u as Oe, t as P, S as j, j as F, k as Kn, l as Ee, F as Ao, $ as Ye, n as gn, p as _o, q as ts, r as X, v as at, P as ns, w as Fe, I as rs, x as Gt, y as Fr, D as _n, z as os, A as is, M as On, B as ss, C as as, E as ls } from "./index-ad400da7.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
var Oo = {
|
package/constants/index.d.ts
CHANGED
package/general/link/link.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ interface Props {
|
|
|
4
4
|
href?: string | undefined;
|
|
5
5
|
/** Content to rendered */
|
|
6
6
|
children: JSX.Element | JSX.Element[] | string;
|
|
7
|
+
/** The element the content should be wrapped in, if it is not a link; nothing is rendered if it's undefined */
|
|
8
|
+
fallbackElement?: 'span' | 'strong' | 'li';
|
|
7
9
|
/** Additonal classes */
|
|
8
10
|
className?: string;
|
|
9
11
|
/** Function to be called when clicked */
|
|
@@ -14,8 +16,12 @@ interface Props {
|
|
|
14
16
|
gtmType?: string;
|
|
15
17
|
/** Target for link */
|
|
16
18
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
19
|
+
/** Whether link should be disabled */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** An ARIA label for the link */
|
|
22
|
+
ariaLabel?: string;
|
|
17
23
|
/** Test id for link */
|
|
18
24
|
'data-testid'?: string;
|
|
19
25
|
}
|
|
20
|
-
declare const Link: ({ href, children, className, onClick, gtmContext, gtmType, ...props }: Props) => string | JSX.Element | JSX.Element[];
|
|
26
|
+
declare const Link: ({ href, children, fallbackElement, className, onClick, gtmContext, gtmType, ...props }: Props) => string | JSX.Element | JSX.Element[];
|
|
21
27
|
export default Link;
|