@aquera/nile-elements 0.0.17 → 0.0.18
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/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.css.js +113 -64
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/demo/index.html +18 -1
- package/dist/index.iife.js +303 -254
- package/dist/nile-button/nile-button.css.cjs.js +1 -1
- package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.esm.js +115 -66
- package/dist/src/nile-button/nile-button.css.js +113 -64
- package/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-button/nile-button.css.ts +113 -64
package/demo/index.html
CHANGED
@@ -2,7 +2,24 @@
|
|
2
2
|
<html lang="en-GB">
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8" />
|
5
|
-
<link rel="stylesheet" href="
|
5
|
+
<link rel="stylesheet" href="/node_modules/@aquera/nile/lib/styles/variables.css" id="stylesheet">
|
6
|
+
|
7
|
+
|
8
|
+
<script>
|
9
|
+
function changeImportBasedOnURLParam() {
|
10
|
+
const urlParams = new URLSearchParams(window.location.search);
|
11
|
+
const variableStyle = urlParams.get('variableStyle');
|
12
|
+
|
13
|
+
if (variableStyle) {
|
14
|
+
const stylesheet = document.getElementById('stylesheet');
|
15
|
+
if (stylesheet) {
|
16
|
+
stylesheet.href = `/node_modules/@aquera/nile/lib/styles/${variableStyle}.css`;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
changeImportBasedOnURLParam();
|
22
|
+
</script>
|
6
23
|
<style>
|
7
24
|
body {
|
8
25
|
background: #fafafa;
|