@apolitical/component-library 1.9.0 → 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-80ea09b3.js +987 -0
- package/{4TNE5QTO-128d9bfa.mjs → 4TNE5QTO-a7c3a370.mjs} +3 -4
- 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-ad400da7.mjs +23290 -0
- package/index-b0222665.js +101 -0
- package/index.d.ts +0 -1
- package/index.js +1 -1
- package/index.mjs +68 -150
- 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/4TNE5QTO-acef2331.js +0 -987
- package/index-6e9a2b8a.js +0 -240
- package/index-cfa68ef5.mjs +0 -47532
|
@@ -1,10 +1,9 @@
|
|
|
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
|
-
import "react-dom";
|
|
8
7
|
var Oo = {
|
|
9
8
|
À: "A",
|
|
10
9
|
Á: "A",
|
|
@@ -7475,7 +7474,7 @@ var yd = () => {
|
|
|
7475
7474
|
});
|
|
7476
7475
|
}
|
|
7477
7476
|
});
|
|
7478
|
-
},
|
|
7477
|
+
}, of = Gd, Qd = (e) => {
|
|
7479
7478
|
yd();
|
|
7480
7479
|
const t = Ae(), n = I(() => t() === "dark" ? St : Et), r = I(() => ue().buttonPosition || zd), o = I(() => e.localStore.open === "true" ? !0 : e.localStore.open === "false" ? !1 : ue().initialIsOpen || Ud), i = I(() => e.localStore.position || ue().position || ir);
|
|
7481
7480
|
return z(() => {
|
|
@@ -9074,5 +9073,5 @@ export {
|
|
|
9074
9073
|
Yd as QueryRow,
|
|
9075
9074
|
zt as QueryStatus,
|
|
9076
9075
|
Xd as QueryStatusCount,
|
|
9077
|
-
|
|
9076
|
+
of as default
|
|
9078
9077
|
};
|
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;
|