@myxtra/authentication-green 2.1.0 → 2.2.0
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.
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>SVG Icons - Authentication - Xtra</title>
|
|
6
|
+
<link
|
|
7
|
+
rel="shortcut icon"
|
|
8
|
+
href="http://ecustomermwstatic.colruytgroup.com/ecustomermw/static/xtra/assets/ico/favicon.ico"
|
|
9
|
+
/>
|
|
10
|
+
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
11
|
+
<style>
|
|
12
|
+
.icon {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 24px;
|
|
17
|
+
padding: 8px;
|
|
18
|
+
border-bottom: 1px solid black;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
p,
|
|
22
|
+
dl,
|
|
23
|
+
dt,
|
|
24
|
+
dd {
|
|
25
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<h1>SVG Icons</h1>
|
|
32
|
+
<div class="icons">
|
|
33
|
+
<header class="icon">
|
|
34
|
+
<p>Icon</p>
|
|
35
|
+
<p>Id</p>
|
|
36
|
+
</header>
|
|
37
|
+
</div>
|
|
38
|
+
<script type="module">
|
|
39
|
+
const href = './bouMenuIcons.svg';
|
|
40
|
+
|
|
41
|
+
const loadSVG = async () => {
|
|
42
|
+
const svgResponse = await fetch('./bouMenuIcons.svg');
|
|
43
|
+
|
|
44
|
+
if (!svgResponse.ok) {
|
|
45
|
+
throw new Error('SVG not found');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const svgString = await svgResponse.text();
|
|
49
|
+
const svgContainer = document.createElement('div');
|
|
50
|
+
svgContainer.innerHTML = svgString;
|
|
51
|
+
const symbols = svgContainer.querySelectorAll('svg > symbol');
|
|
52
|
+
|
|
53
|
+
const container = document.querySelector('.icons');
|
|
54
|
+
symbols.forEach((symbol) => {
|
|
55
|
+
const id = symbol.getAttribute('id');
|
|
56
|
+
container.innerHTML += `
|
|
57
|
+
<dl class="icon">
|
|
58
|
+
<dt>
|
|
59
|
+
<svg width="24" height="24" viewBox="0 0 24 24">
|
|
60
|
+
<use href="${href}#${id}"></use>
|
|
61
|
+
</svg>
|
|
62
|
+
</dt>
|
|
63
|
+
<dd>${id}</dd>
|
|
64
|
+
</dl>
|
|
65
|
+
`;
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
loadSVG()
|
|
70
|
+
.then(() => console.log('Successfully loaded SVG'))
|
|
71
|
+
.catch((error) => console.error(error));
|
|
72
|
+
</script>
|
|
73
|
+
</body>
|
|
74
|
+
</html>
|
|
@@ -8965,7 +8965,7 @@ class Qm extends HTMLElement {
|
|
|
8965
8965
|
async connectedCallback() {
|
|
8966
8966
|
const t = this.attachShadow({ mode: "open" });
|
|
8967
8967
|
Hm(t);
|
|
8968
|
-
const n = Pg(t), i = (await import("./App-
|
|
8968
|
+
const n = Pg(t), i = (await import("./App-46f78d15.mjs")).default;
|
|
8969
8969
|
n.render(
|
|
8970
8970
|
/* @__PURE__ */ dn.jsx(
|
|
8971
8971
|
i,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myxtra/authentication-green",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"main": "./dist/xtra-authentication.mjs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"typecheck": "tsc --noEmit"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@myxtra/shared": "1.
|
|
24
|
-
"@myxtra/ui-react": "1.
|
|
23
|
+
"@myxtra/shared": "1.16.0",
|
|
24
|
+
"@myxtra/ui-react": "1.19.0",
|
|
25
25
|
"@tanstack/react-query": "^5.12.0",
|
|
26
26
|
"clsx": "^2.0.0",
|
|
27
27
|
"i18next": "^23.7.7",
|