@ebrains/vue 0.9.2-beta → 1.0.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.
- package/README.md +4 -4
- package/analytics-d99780e3-Bay18Oil.mjs +28 -0
- package/analytics-d99780e3-DgvAss6l.js +1 -0
- package/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +4 -0
- package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +1 -0
- package/arrow-right-9322ba8a-DBcxNU_p.js +3 -0
- package/arrow-right-9322ba8a-DHq-_PPe.mjs +6 -0
- package/bluesky-cc5edd2d-DaFQc-pr.js +12 -0
- package/bluesky-cc5edd2d-DfuDDO5h.mjs +15 -0
- package/bookmark-c200037c-CIcZ51ZQ.js +14 -0
- package/bookmark-c200037c-ClkCtyRY.mjs +17 -0
- package/chevron-down-6144c823-DWGlv9eV.mjs +13 -0
- package/chevron-down-6144c823-D_8976Ke.js +10 -0
- package/chevron-left-ca6c66e1-DANhLw_T.mjs +12 -0
- package/chevron-left-ca6c66e1-uCH5SUhm.js +9 -0
- package/chevron-right-b88ed2d4-C7dkTMvP.js +3 -0
- package/chevron-right-b88ed2d4-CgEZBvy7.mjs +6 -0
- package/chevron-up-c66bd477-ByW7R48t.js +10 -0
- package/chevron-up-c66bd477-CETJkshq.mjs +13 -0
- package/close-87fc0d63-Cbd-ScJr.js +3 -0
- package/close-87fc0d63-DtDU2HIU.mjs +6 -0
- package/color-primary-palette_6.entry-CfNmHzNO.mjs +300 -0
- package/color-primary-palette_6.entry-c48Fqrz0.js +1 -0
- package/components-section.entry-3yJF6nRH.js +162 -0
- package/components-section.entry-oQTYayXm.mjs +360 -0
- package/copy-03b72cb6-B_WCNQrG.mjs +6 -0
- package/copy-03b72cb6-CZAFAegx.js +3 -0
- package/correct-use-of-colors.entry-7fOSokhJ.mjs +59 -0
- package/correct-use-of-colors.entry-DEdyB_h5.js +1 -0
- package/docs-palettes.entry-6ekOz4GT.js +1 -0
- package/docs-palettes.entry-Bz96UO-K.mjs +22 -0
- package/docs-tokens.entry-D-hRYpqk.mjs +30 -0
- package/docs-tokens.entry-DjHB8v2C.js +1 -0
- package/eds-accordion.entry-Czj2ZwpQ.js +4 -0
- package/eds-accordion.entry-D1L8fv2r.mjs +48 -0
- package/eds-alert.entry-BqEeR0Xw.js +165 -0
- package/eds-alert.entry-DAeVRXua.mjs +251 -0
- package/eds-app-root.entry-BBbgNK8b.mjs +25 -0
- package/eds-app-root.entry-BrJeEAVb.js +1 -0
- package/eds-avatar_34.entry-1U84FvGQ.mjs +12120 -0
- package/eds-avatar_34.entry-iuvkwQW_.js +10209 -0
- package/eds-card-project.entry-Cd7tP9g4.mjs +170 -0
- package/eds-card-project.entry-CewRPvW7.js +1 -0
- package/eds-card-section.entry-BU4fC9y5.js +1 -0
- package/eds-card-section.entry-CQLG4D0D.mjs +30 -0
- package/eds-card-tags.entry-BKuk3O8k.mjs +13 -0
- package/eds-card-tags.entry-DOV6K1FD.js +1 -0
- package/eds-card-tool.entry-DpfInwr3.mjs +56 -0
- package/eds-card-tool.entry-LSjtu5k_.js +1 -0
- package/eds-code-block.entry-Bz1Pbg4W.mjs +1623 -0
- package/eds-code-block.entry-DG1tMA_4.js +9 -0
- package/eds-cookies-preference.entry-0J8XlEDN.js +1 -0
- package/eds-cookies-preference.entry-DgP6pxkr.mjs +20 -0
- package/eds-feedback.entry-Cmn3G5sR.js +1 -0
- package/eds-feedback.entry-CxyxT-OD.mjs +54 -0
- package/eds-frame.entry-Dh_T8O60.mjs +67 -0
- package/eds-frame.entry-LDVXpjkU.js +1 -0
- package/eds-icon-arrow-diagonal.entry-C6AHMuMB.js +1 -0
- package/eds-icon-arrow-diagonal.entry-C75xEcUs.mjs +13 -0
- package/eds-icon-arrow-right.entry-DOsVz4oP.mjs +13 -0
- package/eds-icon-arrow-right.entry-VMROpz2J.js +1 -0
- package/eds-icon-bluesky.entry-BmSl31Ky.js +1 -0
- package/eds-icon-bluesky.entry-C9skxio2.mjs +13 -0
- package/eds-icon-bookmark.entry-DdUP23Uu.js +1 -0
- package/eds-icon-bookmark.entry-xWgHPpg-.mjs +13 -0
- package/eds-icon-chevron-down.entry-DNY1bk_l.js +1 -0
- package/eds-icon-chevron-down.entry-ut52sjbR.mjs +13 -0
- package/eds-icon-chevron-left.entry-Bi82EnZL.mjs +13 -0
- package/eds-icon-chevron-left.entry-nzi05fTd.js +1 -0
- package/eds-icon-chevron-right.entry-CBW3L3p8.js +1 -0
- package/eds-icon-chevron-right.entry-Dc_uRypg.mjs +13 -0
- package/eds-icon-chevron-up.entry-CO7nzD9J.mjs +13 -0
- package/eds-icon-chevron-up.entry-Cc10e7Ce.js +1 -0
- package/eds-icon-close.entry-CvXUDttz.mjs +13 -0
- package/eds-icon-close.entry-Dw7ZUnkQ.js +1 -0
- package/eds-icon-copy.entry-DV4qtIA7.mjs +13 -0
- package/eds-icon-copy.entry-x46asO9P.js +1 -0
- package/eds-icon-eu.entry-BaEbXLNS.mjs +13 -0
- package/eds-icon-eu.entry-D2CoGoAF.js +1 -0
- package/eds-icon-external.entry-C0Zm0isI.js +1 -0
- package/eds-icon-external.entry-CckFcmA1.mjs +13 -0
- package/eds-icon-facebook.entry-CIiiUf27.mjs +13 -0
- package/eds-icon-facebook.entry-DwUcANz7.js +1 -0
- package/eds-icon-gitlab.entry-CuKUR41Q.js +1 -0
- package/eds-icon-gitlab.entry-PCSE_PYe.mjs +13 -0
- package/eds-icon-linkedin.entry-Bpoynapn.js +1 -0
- package/eds-icon-linkedin.entry-C9xqBwJ1.mjs +13 -0
- package/eds-icon-loader.entry-CkIiBDsV.mjs +13 -0
- package/eds-icon-loader.entry-dxgwIFD3.js +1 -0
- package/eds-icon-mastodon.entry-7CmZhvNG.js +1 -0
- package/eds-icon-mastodon.entry-k86mWfUp.mjs +13 -0
- package/eds-icon-menu.entry-7zPtmR24.mjs +13 -0
- package/eds-icon-menu.entry-CFIbaI5j.js +1 -0
- package/eds-icon-minus.entry-B4ntnZW_.js +1 -0
- package/eds-icon-minus.entry-fPsoVmGR.mjs +13 -0
- package/eds-icon-more.entry-D_HCuwKk.js +1 -0
- package/eds-icon-more.entry-DyH3sCa4.mjs +13 -0
- package/eds-icon-paper.entry-BQlPnCrf.mjs +13 -0
- package/eds-icon-paper.entry-CHAw7mqA.js +1 -0
- package/eds-icon-plus.entry-QOVehJoq.js +1 -0
- package/eds-icon-plus.entry-zTfrWeuu.mjs +13 -0
- package/eds-icon-portal.entry-CbJqS4OZ.js +1 -0
- package/eds-icon-portal.entry-SlgbRrHY.mjs +13 -0
- package/eds-icon-private.entry-DSIHrQEv.js +1 -0
- package/eds-icon-private.entry-uHBGM_wp.mjs +13 -0
- package/eds-icon-public.entry-Cj1hddsF.js +1 -0
- package/eds-icon-public.entry-_sTE1w2W.mjs +13 -0
- package/eds-icon-search.entry-CXVkIZak.js +1 -0
- package/eds-icon-search.entry-DIww9BJF.mjs +13 -0
- package/eds-icon-star.entry-B3WySZM_.mjs +13 -0
- package/eds-icon-star.entry-B464U0ht.js +1 -0
- package/eds-icon-success.entry-BhRuLH3J.js +1 -0
- package/eds-icon-success.entry-HesFgi8E.mjs +13 -0
- package/eds-icon-thumbs-down.entry-CbL3623r.mjs +13 -0
- package/eds-icon-thumbs-down.entry-DVK5ACMh.js +1 -0
- package/eds-icon-thumbs-up.entry-C2QZ3OSz.mjs +13 -0
- package/eds-icon-thumbs-up.entry-MDqpoPcO.js +1 -0
- package/eds-icon-tutorial.entry-DRB27GWh.mjs +13 -0
- package/eds-icon-tutorial.entry-xaf63POz.js +1 -0
- package/eds-icon-twitter.entry-CYCIFfgj.mjs +13 -0
- package/eds-icon-twitter.entry-CcpEPKUu.js +1 -0
- package/eds-icon-unknown.entry-kYRE4en_.js +1 -0
- package/eds-icon-unknown.entry-ksugYL8s.mjs +13 -0
- package/eds-icon-updown.entry-3_UTqXet.js +1 -0
- package/eds-icon-updown.entry-DrW4QdWY.mjs +13 -0
- package/eds-icon-user.entry-BimbLh7T.js +1 -0
- package/eds-icon-user.entry-CMjrRV4a.mjs +13 -0
- package/eds-icon-youtube.entry-BepDLIVw.js +1 -0
- package/eds-icon-youtube.entry-CGXXdMzx.mjs +13 -0
- package/eds-matomo-notice.entry-BnbhjXrV.js +1 -0
- package/eds-matomo-notice.entry-DQLfTEH4.mjs +92 -0
- package/eds-pagination_2.entry-BK--gyZ0.mjs +258 -0
- package/eds-pagination_2.entry-De883ILy.js +1 -0
- package/eds-progress-bar.entry-CnzFrS-7.js +1 -0
- package/eds-progress-bar.entry-UWeq2B4o.mjs +39 -0
- package/eds-rating.entry-D48_hoBw.js +1 -0
- package/eds-rating.entry-ScrHbfrp.mjs +61 -0
- package/eds-section-core_2.entry-D3FNm7II.mjs +39 -0
- package/eds-section-core_2.entry-DshZ38Q9.js +1 -0
- package/eds-spinner.entry-CAKA3YkP.js +1 -0
- package/eds-spinner.entry-KZWQRAHb.mjs +36 -0
- package/eds-splash-screen.entry-B7f2rbAn.mjs +39 -0
- package/eds-splash-screen.entry-YJ_mGQYU.js +1 -0
- package/eds-switch.entry-CKv4fbm-.js +1 -0
- package/eds-switch.entry-DbBUxVI8.mjs +29 -0
- package/eds-timeline.entry-BE-6PK5Q.js +1 -0
- package/eds-timeline.entry-uFV4mRmh.mjs +46 -0
- package/eds-toast-manager.entry-BKIf0Xw3.js +1 -0
- package/eds-toast-manager.entry-CXL8sMaG.mjs +61 -0
- package/eds-toast.entry-a-RIjL18.js +3 -0
- package/eds-toast.entry-oZ1Juhqm.mjs +61 -0
- package/eds-trl.entry-Bw8w42hZ.mjs +34 -0
- package/eds-trl.entry-DmSx4bnn.js +1 -0
- package/eu-9ddde93a-BFtIQw9B.js +28 -0
- package/eu-9ddde93a-ft4szvR5.mjs +31 -0
- package/facebook-9cb5c17f-BcUhbrj6.mjs +15 -0
- package/facebook-9cb5c17f-Y_gvQ682.js +12 -0
- package/generated/components.d.ts +40 -0
- package/generated/vue-component-lib/utils.d.ts +16 -0
- package/incorrect-use-of-colors.entry-BlDQxmUQ.mjs +42 -0
- package/incorrect-use-of-colors.entry-CglkFNGU.js +1 -0
- package/index-39c58238-BwYCDOHZ.mjs +44 -0
- package/index-39c58238-SQ-JC-LH.js +1 -0
- package/index-BvZ-fq9l.mjs +3486 -0
- package/index-CJvr9v3B.js +21 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.mjs +42 -0
- package/linkedin-e8650abb-BkDrkjzY.js +26 -0
- package/linkedin-e8650abb-DYMdsale.mjs +29 -0
- package/loader-c9628637-ChpnbJkv.mjs +31 -0
- package/loader-c9628637-Vj8Wt1e8.js +28 -0
- package/logo-color-7f1fd803-CFgbXdt8.mjs +116 -0
- package/logo-color-7f1fd803-DRD3vZVn.js +113 -0
- package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +119 -0
- package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +116 -0
- package/logo-space.entry-D1gv5Jv7.mjs +19 -0
- package/logo-space.entry-d5Tx6GSR.js +6 -0
- package/logo-variations-horizontal_2.entry-CiMlktdv.js +7 -0
- package/logo-variations-horizontal_2.entry-DPHzlUCt.mjs +29 -0
- package/logo-variations-tabs.entry-BYi6NRAo.mjs +22 -0
- package/logo-variations-tabs.entry-CcSRDFWV.js +1 -0
- package/logo-white-no-bg-f382f86f-DXYn3NwV.js +1011 -0
- package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +1022 -0
- package/logo-wrong-usage.entry-9iDssoCI.mjs +14 -0
- package/logo-wrong-usage.entry-gsDvZ1sn.js +1 -0
- package/mastodon-3703ec61-C7iI4Hk0.mjs +15 -0
- package/mastodon-3703ec61-C9v6Olc-.js +12 -0
- package/menu-340ea948-BpnYX3gY.mjs +12 -0
- package/menu-340ea948-ZdelWVw3.js +9 -0
- package/minus-b30a7c71-BPAvqHzH.mjs +12 -0
- package/minus-b30a7c71-DqCTe6Qh.js +9 -0
- package/mono-53f70232-DGi2XDlR.mjs +12 -0
- package/mono-53f70232-DgAsWvoQ.js +9 -0
- package/more-4449d549-D4HA1cRq.js +11 -0
- package/more-4449d549-rI9hOpEp.mjs +14 -0
- package/package.json +1 -1
- package/paper-8e74ea31-BvGrc1Vo.mjs +16 -0
- package/paper-8e74ea31-C4CV6tlB.js +13 -0
- package/plus-89c07be2-BTXnjg5K.js +10 -0
- package/plus-89c07be2-DyT9I4-L.mjs +13 -0
- package/portal-d6c8ce56-Cj61ldo8.mjs +19 -0
- package/portal-d6c8ce56-NpSrdNZ_.js +16 -0
- package/private-1c25ff8e-D3Fo36q6.js +23 -0
- package/private-1c25ff8e-Dz82_Xf8.mjs +26 -0
- package/public-d4d8c585-BJKDD5F6.mjs +17 -0
- package/public-d4d8c585-lV6QxdPw.js +14 -0
- package/search-fbcd79c2-BMxCaeEk.js +10 -0
- package/search-fbcd79c2-rfV0PlHP.mjs +13 -0
- package/sharedUtils-a550989c-Ci3Tx3jc.mjs +15 -0
- package/sharedUtils-a550989c-m4pF1Vqy.js +1 -0
- package/star-0da9b5e9-B3-jr0yE.js +3 -0
- package/star-0da9b5e9-DX8_iFmu.mjs +6 -0
- package/success-443809da-BD23vltm.mjs +19 -0
- package/success-443809da-BUEhLsAD.js +16 -0
- package/svg-repository.entry-BtksDklW.mjs +301 -0
- package/svg-repository.entry-_-HISW99.js +173 -0
- package/thumbs-down-a18fd049-CzuBAj99.mjs +6 -0
- package/thumbs-down-a18fd049-DTNIbYbm.js +3 -0
- package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +7 -0
- package/thumbs-up-c19a71bc-w8Z8gegt.js +4 -0
- package/token-list_3.entry-CNkWD89P.mjs +247 -0
- package/token-list_3.entry-CRZq4och.js +1 -0
- package/token-ratios.entry-CL40j9gF.js +1 -0
- package/token-ratios.entry-D4aHLsX-.mjs +25 -0
- package/token-typography.entry-D17oZHbh.js +2 -0
- package/token-typography.entry-ayRMMiOe.mjs +213 -0
- package/tutotial-150ee1fd-DFdyoHVA.mjs +28 -0
- package/tutotial-150ee1fd-DjN_JBL5.js +25 -0
- package/twitter-ac21b505-CGWVGWM9.mjs +15 -0
- package/twitter-ac21b505-DDdHS4hB.js +12 -0
- package/unknown-ed01a24c-B0AcMuip.js +20 -0
- package/unknown-ed01a24c-DonOUpIC.mjs +23 -0
- package/up-and-down-d747abee-CWoZjUyq.js +10 -0
- package/up-and-down-d747abee-D7g6H0T0.mjs +13 -0
- package/user-71ebdc15-BBKQbcQD.js +14 -0
- package/user-71ebdc15-CoHlCtJg.mjs +17 -0
- package/youtube-efbfbdc4-BLTH1Jl9.js +12 -0
- package/youtube-efbfbdc4-BfySbfjR.mjs +15 -0
- package/.eslintrc.json +0 -18
- package/project.json +0 -9
- package/src/generated/components.ts +0 -374
- package/src/generated/vue-component-lib/utils.ts +0 -236
- package/src/index.ts +0 -1
- package/src/vue-shims.d.ts +0 -5
- package/tsconfig.json +0 -18
- package/tsconfig.lib.json +0 -27
- package/vite.config.ts +0 -71
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as l, h as e } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
const r = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
l(this, t), this.tabIndex = void 0;
|
|
5
|
+
}
|
|
6
|
+
renderContent() {
|
|
7
|
+
switch (this.tabIndex) {
|
|
8
|
+
case 0:
|
|
9
|
+
return e("div", null, e("h2", null, "Primary Palette"), e("color-primary-palette", null), e("h2", null, "Secondary Palette"), e("color-secondary-palette", null), e("h2", null, "Support Palette"), e("color-support-palette", null));
|
|
10
|
+
case 1:
|
|
11
|
+
return e("div", null, e("h2", null, "Primary Palette"), e("gradient-primary-palette", null), e("h2", null, "Secondary Palette"), e("gradient-secondary-palette", null), e("h2", null, "Support Palette"), e("gradient-support-palette", null));
|
|
12
|
+
default:
|
|
13
|
+
return e("p", null, "Content not available.");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return e("div", { key: "638d6345ed0e32bda5d350f7ee8e54055d7fe770", class: "container" }, this.renderContent());
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
r as docs_palettes
|
|
22
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { r as n, h as e } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
const s = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
n(this, t), this.tabIndex = void 0;
|
|
5
|
+
}
|
|
6
|
+
renderContent() {
|
|
7
|
+
switch (this.tabIndex) {
|
|
8
|
+
case 0:
|
|
9
|
+
return e("token-list", { show: "background" });
|
|
10
|
+
case 1:
|
|
11
|
+
return e("token-list", { show: "text" });
|
|
12
|
+
case 2:
|
|
13
|
+
return e("token-list", { show: "border" });
|
|
14
|
+
case 3:
|
|
15
|
+
return e("token-radii", null);
|
|
16
|
+
case 4:
|
|
17
|
+
return e("token-list", { show: "outline" });
|
|
18
|
+
case 5:
|
|
19
|
+
return e("token-shadows", null);
|
|
20
|
+
default:
|
|
21
|
+
return e("p", null, "Content not available.");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return e("div", { key: "7d86f29bb4a82aec564b0600749d97aedc58925d", class: "container" }, this.renderContent());
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
s as docs_tokens
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("token-list",{show:"background"});case 1:return e.h("token-list",{show:"text"});case 2:return e.h("token-list",{show:"border"});case 3:return e.h("token-radii",null);case 4:return e.h("token-list",{show:"outline"});case 5:return e.h("token-shadows",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"7d86f29bb4a82aec564b0600749d97aedc58925d",class:"container"},this.renderContent())}};exports.docs_tokens=n;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),o=require("./analytics-d99780e3-DgvAss6l.js"),r="blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.break-words{overflow-wrap:break-word}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.pr-32{padding-right:2rem}.pr-36{padding-right:2.25rem}.pr-40{padding-right:2.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-4{padding-top:0.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}",a=r,n=class{constructor(i){e.registerInstance(this,i),this.accordion=e.createEvent(this,"accordion",7),this.handleClick=()=>{var t;this.isExpanded=!this.isExpanded,this.accordion.emit(this.isExpanded),this.setPanelHeight(),o.sendAnalytics({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:((t=this.heading)===null||t===void 0?void 0:t.toLowerCase())||"",action:this.isExpanded?"expanded":"collapsed"})},this.setPanelHeight=()=>{this.childContentRef&&(this.shortContent=this.wrapperRef.scrollWidth>830&&!this.description?this.childContentRef.scrollHeight<=80:this.childContentRef.scrollHeight<=20,this.panelHeight=this.isExpanded&&!this.shortContent?this.childContentRef.scrollHeight:0),this.headerRef&&(this.headerHeight=this.headerRef.scrollHeight-30)},this.heading=void 0,this.description=void 0,this.switchBg=!0,this.expanded=!1,this.clampText=!0,this.isExpanded=this.expanded,this.panelHeight=0,this.shortContent=!1,this.headerHeight=0}componentDidLoad(){this.setPanelHeight(),window.addEventListener("resize",this.setPanelHeight)}disconnectedCallback(){window.removeEventListener("resize",this.setPanelHeight)}render(){return e.h("div",{key:"d2fcce2468130200dd1516902a203c4ca8ae543f",ref:i=>this.wrapperRef=i,class:`flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
2
|
+
${this.switchBg&&this.isExpanded?"bg-inverse":"bg-default"}
|
|
3
|
+
${this.switchBg?"hover:bg-inverse":""}
|
|
4
|
+
${this.description?"min-h-56":""}`},e.h("h3",{key:"f59a85e886736b483f6a311a00426340a36dcb71",ref:i=>this.headerRef=i,class:"mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40"},this.heading),e.h("div",{key:"9fe1d99f46f3c066bbb1e8f4ef695fe87e8fad54",class:"ml-auto"},e.h("eds-button",{key:"4d4c16a958df05f1e773fe74fa49647fc94766c7",id:"toggleAccordion",intent:"tertiary","aria-expanded":this.isExpanded||this.shortContent,"aria-label":"Toggle accordion","aria-controls":"accordionSection",class:"effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none",onClick:this.handleClick,icon:"chevron-down"})),e.h("div",{key:"5d84ffe8032834575d165f7a5e097539de73350f",class:"w-full",style:Number.isFinite(this.headerHeight)?{marginTop:`${this.headerHeight}px`}:{}},this.description?e.h("span",{class:`text-light ${!this.isExpanded&&this.clampText?"line-clamp-1":""}`},this.description):null,e.h("section",{key:"1813aea1369b8883cd45088799f9715cf8fc0556",id:"accordionSection",role:"region","aria-labelledby":"accordionHeader","aria-hidden":!this.isExpanded,class:`z-1 effect-height relative h-0 w-full ${!this.isExpanded&&this.clampText?"overflow-hidden":""}`,style:{height:this.isExpanded?"auto":"0"}},e.h("div",{key:"a9a95adbb819530f426045c55ca1a02f3a778f0a",ref:i=>this.childContentRef=i,class:"accordion-content effect-color pt-4","aria-hidden":!this.isExpanded},e.h("span",{key:"2518e3243e0bd199061ac255922d661e0558bdc8",class:`${!this.isExpanded&&this.clampText?"line-clamp-2":""}`},e.h("slot",{key:"3f3ab74926e7e45d4aacc4c7003c05be3c6b82c3"}))))))}get el(){return e.getElement(this)}};n.style=a;exports.eds_accordion=n;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { r as n, c as o, h as e, g as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
import { s as a } from "./analytics-d99780e3-Bay18Oil.mjs";
|
|
3
|
+
const d = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.break-words{overflow-wrap:break-word}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.pr-32{padding-right:2rem}.pr-36{padding-right:2.25rem}.pr-40{padding-right:2.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-4{padding-top:0.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}", s = d, l = class {
|
|
4
|
+
constructor(i) {
|
|
5
|
+
n(this, i), this.accordion = o(this, "accordion", 7), this.handleClick = () => {
|
|
6
|
+
var t;
|
|
7
|
+
this.isExpanded = !this.isExpanded, this.accordion.emit(this.isExpanded), this.setPanelHeight(), a({
|
|
8
|
+
category: "ui-component",
|
|
9
|
+
parentContext: null,
|
|
10
|
+
tag: this.el.tagName.toLowerCase(),
|
|
11
|
+
name: ((t = this.heading) === null || t === void 0 ? void 0 : t.toLowerCase()) || "",
|
|
12
|
+
action: this.isExpanded ? "expanded" : "collapsed"
|
|
13
|
+
});
|
|
14
|
+
}, this.setPanelHeight = () => {
|
|
15
|
+
this.childContentRef && (this.shortContent = this.wrapperRef.scrollWidth > 830 && !this.description ? this.childContentRef.scrollHeight <= 80 : this.childContentRef.scrollHeight <= 20, this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0), this.headerRef && (this.headerHeight = this.headerRef.scrollHeight - 30);
|
|
16
|
+
}, this.heading = void 0, this.description = void 0, this.switchBg = !0, this.expanded = !1, this.clampText = !0, this.isExpanded = this.expanded, this.panelHeight = 0, this.shortContent = !1, this.headerHeight = 0;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
20
|
+
* to recalculate height on window resize.
|
|
21
|
+
*/
|
|
22
|
+
componentDidLoad() {
|
|
23
|
+
this.setPanelHeight(), window.addEventListener("resize", this.setPanelHeight);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Lifecycle method that cleans up the resize event listener when the component is removed.
|
|
27
|
+
*/
|
|
28
|
+
disconnectedCallback() {
|
|
29
|
+
window.removeEventListener("resize", this.setPanelHeight);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Renders the accordion structure, including header, content, description, and any slotted content.
|
|
33
|
+
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
34
|
+
*/
|
|
35
|
+
render() {
|
|
36
|
+
return e("div", { key: "d2fcce2468130200dd1516902a203c4ca8ae543f", ref: (i) => this.wrapperRef = i, class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
37
|
+
${this.switchBg && this.isExpanded ? "bg-inverse" : "bg-default"}
|
|
38
|
+
${this.switchBg ? "hover:bg-inverse" : ""}
|
|
39
|
+
${this.description ? "min-h-56" : ""}` }, e("h3", { key: "f59a85e886736b483f6a311a00426340a36dcb71", ref: (i) => this.headerRef = i, class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40" }, this.heading), e("div", { key: "9fe1d99f46f3c066bbb1e8f4ef695fe87e8fad54", class: "ml-auto" }, e("eds-button", { key: "4d4c16a958df05f1e773fe74fa49647fc94766c7", id: "toggleAccordion", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: "effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none", onClick: this.handleClick, icon: "chevron-down" })), e("div", { key: "5d84ffe8032834575d165f7a5e097539de73350f", class: "w-full", style: Number.isFinite(this.headerHeight) ? { marginTop: `${this.headerHeight}px` } : {} }, this.description ? e("span", { class: `text-light ${!this.isExpanded && this.clampText ? "line-clamp-1" : ""}` }, this.description) : null, e("section", { key: "1813aea1369b8883cd45088799f9715cf8fc0556", id: "accordionSection", role: "region", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? "overflow-hidden" : ""}`, style: { height: this.isExpanded ? "auto" : "0" } }, e("div", { key: "a9a95adbb819530f426045c55ca1a02f3a778f0a", ref: (i) => this.childContentRef = i, class: "accordion-content effect-color pt-4", "aria-hidden": !this.isExpanded }, e("span", { key: "2518e3243e0bd199061ac255922d661e0558bdc8", class: `${!this.isExpanded && this.clampText ? "line-clamp-2" : ""}` }, e("slot", { key: "3f3ab74926e7e45d4aacc4c7003c05be3c6b82c3" }))))));
|
|
40
|
+
}
|
|
41
|
+
get el() {
|
|
42
|
+
return r(this);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
l.style = s;
|
|
46
|
+
export {
|
|
47
|
+
l as eds_accordion
|
|
48
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),i=require("./index-39c58238-SQ-JC-LH.js"),a=`*,
|
|
2
|
+
::before,
|
|
3
|
+
::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
border-width: 0;
|
|
6
|
+
border-style: solid;
|
|
7
|
+
border-color: currentColor;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
p {
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.f-ui-01 {
|
|
15
|
+
font-family: var(--f-ui-01-fontFamily);
|
|
16
|
+
font-weight: var(--f-ui-01-fontWeight);
|
|
17
|
+
font-size: var(--f-ui-01-fontSize);
|
|
18
|
+
line-height: var(--f-ui-01-lineHeight);
|
|
19
|
+
letter-spacing: var(--f-ui-01-letterSpacing);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.border-inside {
|
|
23
|
+
position: relative;
|
|
24
|
+
|
|
25
|
+
&::after {
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&::after {
|
|
30
|
+
position: absolute;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&::after {
|
|
34
|
+
inset: 0rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&::after {
|
|
38
|
+
z-index: 1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&::after {
|
|
42
|
+
border-radius: 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&::after {
|
|
46
|
+
border-width: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&::after {
|
|
50
|
+
border-width: 2px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&::after {
|
|
54
|
+
border-color: rgba(0, 0, 0, .1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&::after {
|
|
58
|
+
content: '';
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.flex {
|
|
63
|
+
display: flex;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.w-full {
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.flex-row {
|
|
71
|
+
flex-direction: row;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.items-center {
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.justify-between {
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.gap-x-12 {
|
|
83
|
+
-moz-column-gap: 0.75rem;
|
|
84
|
+
column-gap: 0.75rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.space-y-12> :not([hidden])~ :not([hidden]) {
|
|
88
|
+
--tw-space-y-reverse: 0;
|
|
89
|
+
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
|
|
90
|
+
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.rounded-lg {
|
|
94
|
+
border-radius: 16px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.bg-dark {
|
|
98
|
+
background-color: var(--grey-300);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.bg-error {
|
|
102
|
+
background-color: var(--red-200);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.bg-success {
|
|
106
|
+
background-color: var(--green-200);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.bg-warning {
|
|
110
|
+
background-color: var(--yellow-200);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.p-16 {
|
|
114
|
+
padding: 1rem;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.p-20 {
|
|
118
|
+
padding: 1.25rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.px-12 {
|
|
122
|
+
padding-left: 0.75rem;
|
|
123
|
+
padding-right: 0.75rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.px-20 {
|
|
127
|
+
padding-left: 1.25rem;
|
|
128
|
+
padding-right: 1.25rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.py-12 {
|
|
132
|
+
padding-top: 0.75rem;
|
|
133
|
+
padding-bottom: 0.75rem;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.py-20 {
|
|
137
|
+
padding-top: 1.25rem;
|
|
138
|
+
padding-bottom: 1.25rem;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.py-8 {
|
|
142
|
+
padding-top: 0.5rem;
|
|
143
|
+
padding-bottom: 0.5rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.pr-12 {
|
|
147
|
+
padding-right: 0.75rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.shadow {
|
|
151
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
152
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
[class*=underline-] {
|
|
156
|
+
text-decoration-line: underline;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.after\\:rounded-lg::after {
|
|
160
|
+
border-radius: 16px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.after\\:border-softest::after {
|
|
164
|
+
border-color: rgba(0, 0, 0, .05);
|
|
165
|
+
}`,o=a,s=i.cva(["w-full bg-dark"],{variants:{intent:{default:"",warning:"bg-warning",error:"bg-error",success:"bg-success"},brd:{rounded:"rounded-lg border-inside after:border-softest after:rounded-lg",normal:""},direction:{vertical:"space-y-12",horizontal:"flex flex-row items-center justify-between gap-x-12"},withBtn:{false:"",true:""}},compoundVariants:[{direction:"horizontal",withBtn:!0,class:"px-20 pr-12 py-12"},{direction:"horizontal",withBtn:!1,class:"p-20"},{direction:"vertical",withBtn:!0,class:"p-16"},{direction:"vertical",withBtn:!1,class:"px-12 py-20"}],defaultVariants:{intent:"default",brd:"rounded",direction:"horizontal"}}),r=class{constructor(n){e.registerInstance(this,n),this.message=void 0,this.pressableLabel=void 0,this.pressableUrl=void 0,this.direction="horizontal",this.intent="default",this.brd="rounded",this.withBtn=!1}componentWillLoad(){this.withBtn=!!this.pressableLabel}componentDidLoad(){var n;const t=(n=this.el.shadowRoot)===null||n===void 0?void 0:n.querySelector("eds-link");t&&this.emitContext(t)}emitContext(n){const t=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});n.dispatchEvent(t)}render(){return e.h("div",{key:"90eae6088fb792c671eca1d74d9a6e7d212c2c1c",class:s({intent:this.intent,brd:this.brd,direction:this.direction,withBtn:this.withBtn}),role:"alert"},e.h("p",{key:"201a9e6352350dbe9d4f1ab137a669f212519ea5",class:"f-ui-01 py-8",innerHTML:this.message}),this.withBtn&&(this.pressableUrl?e.h("eds-link",{class:"eds-alert-link",label:this.pressableLabel,url:this.pressableUrl,intent:"secondary",external:!0}):null))}get el(){return e.getElement(this)}};r.style=o;exports.eds_alert=r;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { r, h as t, g as i } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
import { c as a } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
3
|
+
const o = `*,
|
|
4
|
+
::before,
|
|
5
|
+
::after {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
border-width: 0;
|
|
8
|
+
border-style: solid;
|
|
9
|
+
border-color: currentColor;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
p {
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.f-ui-01 {
|
|
17
|
+
font-family: var(--f-ui-01-fontFamily);
|
|
18
|
+
font-weight: var(--f-ui-01-fontWeight);
|
|
19
|
+
font-size: var(--f-ui-01-fontSize);
|
|
20
|
+
line-height: var(--f-ui-01-lineHeight);
|
|
21
|
+
letter-spacing: var(--f-ui-01-letterSpacing);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.border-inside {
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
&::after {
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&::after {
|
|
32
|
+
position: absolute;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&::after {
|
|
36
|
+
inset: 0rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&::after {
|
|
40
|
+
z-index: 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::after {
|
|
44
|
+
border-radius: 8px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&::after {
|
|
48
|
+
border-width: 1px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&::after {
|
|
52
|
+
border-width: 2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&::after {
|
|
56
|
+
border-color: rgba(0, 0, 0, .1);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::after {
|
|
60
|
+
content: '';
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.flex {
|
|
65
|
+
display: flex;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.w-full {
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.flex-row {
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.items-center {
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.justify-between {
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.gap-x-12 {
|
|
85
|
+
-moz-column-gap: 0.75rem;
|
|
86
|
+
column-gap: 0.75rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.space-y-12> :not([hidden])~ :not([hidden]) {
|
|
90
|
+
--tw-space-y-reverse: 0;
|
|
91
|
+
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
|
|
92
|
+
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.rounded-lg {
|
|
96
|
+
border-radius: 16px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.bg-dark {
|
|
100
|
+
background-color: var(--grey-300);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.bg-error {
|
|
104
|
+
background-color: var(--red-200);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.bg-success {
|
|
108
|
+
background-color: var(--green-200);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.bg-warning {
|
|
112
|
+
background-color: var(--yellow-200);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.p-16 {
|
|
116
|
+
padding: 1rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.p-20 {
|
|
120
|
+
padding: 1.25rem;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.px-12 {
|
|
124
|
+
padding-left: 0.75rem;
|
|
125
|
+
padding-right: 0.75rem;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.px-20 {
|
|
129
|
+
padding-left: 1.25rem;
|
|
130
|
+
padding-right: 1.25rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.py-12 {
|
|
134
|
+
padding-top: 0.75rem;
|
|
135
|
+
padding-bottom: 0.75rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.py-20 {
|
|
139
|
+
padding-top: 1.25rem;
|
|
140
|
+
padding-bottom: 1.25rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.py-8 {
|
|
144
|
+
padding-top: 0.5rem;
|
|
145
|
+
padding-bottom: 0.5rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.pr-12 {
|
|
149
|
+
padding-right: 0.75rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.shadow {
|
|
153
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
154
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[class*=underline-] {
|
|
158
|
+
text-decoration-line: underline;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.after\\:rounded-lg::after {
|
|
162
|
+
border-radius: 16px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.after\\:border-softest::after {
|
|
166
|
+
border-color: rgba(0, 0, 0, .05);
|
|
167
|
+
}`, s = o, d = a(["w-full bg-dark"], {
|
|
168
|
+
variants: {
|
|
169
|
+
intent: {
|
|
170
|
+
default: "",
|
|
171
|
+
warning: "bg-warning",
|
|
172
|
+
error: "bg-error",
|
|
173
|
+
success: "bg-success"
|
|
174
|
+
},
|
|
175
|
+
brd: {
|
|
176
|
+
rounded: "rounded-lg border-inside after:border-softest after:rounded-lg",
|
|
177
|
+
normal: ""
|
|
178
|
+
},
|
|
179
|
+
direction: {
|
|
180
|
+
vertical: "space-y-12",
|
|
181
|
+
horizontal: "flex flex-row items-center justify-between gap-x-12"
|
|
182
|
+
},
|
|
183
|
+
withBtn: {
|
|
184
|
+
false: "",
|
|
185
|
+
true: ""
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
compoundVariants: [
|
|
189
|
+
{
|
|
190
|
+
direction: "horizontal",
|
|
191
|
+
withBtn: !0,
|
|
192
|
+
class: "px-20 pr-12 py-12"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
direction: "horizontal",
|
|
196
|
+
withBtn: !1,
|
|
197
|
+
class: "p-20"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
direction: "vertical",
|
|
201
|
+
withBtn: !0,
|
|
202
|
+
class: "p-16"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
direction: "vertical",
|
|
206
|
+
withBtn: !1,
|
|
207
|
+
class: "px-12 py-20"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
defaultVariants: {
|
|
211
|
+
intent: "default",
|
|
212
|
+
brd: "rounded",
|
|
213
|
+
direction: "horizontal"
|
|
214
|
+
}
|
|
215
|
+
}), l = class {
|
|
216
|
+
constructor(n) {
|
|
217
|
+
r(this, n), this.message = void 0, this.pressableLabel = void 0, this.pressableUrl = void 0, this.direction = "horizontal", this.intent = "default", this.brd = "rounded", this.withBtn = !1;
|
|
218
|
+
}
|
|
219
|
+
componentWillLoad() {
|
|
220
|
+
this.withBtn = !!this.pressableLabel;
|
|
221
|
+
}
|
|
222
|
+
componentDidLoad() {
|
|
223
|
+
var n;
|
|
224
|
+
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelector("eds-link");
|
|
225
|
+
e && this.emitContext(e);
|
|
226
|
+
}
|
|
227
|
+
emitContext(n) {
|
|
228
|
+
const e = new CustomEvent("parentContext", {
|
|
229
|
+
detail: {
|
|
230
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
231
|
+
identifier: null
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
n.dispatchEvent(e);
|
|
235
|
+
}
|
|
236
|
+
render() {
|
|
237
|
+
return t("div", { key: "90eae6088fb792c671eca1d74d9a6e7d212c2c1c", class: d({
|
|
238
|
+
intent: this.intent,
|
|
239
|
+
brd: this.brd,
|
|
240
|
+
direction: this.direction,
|
|
241
|
+
withBtn: this.withBtn
|
|
242
|
+
}), role: "alert" }, t("p", { key: "201a9e6352350dbe9d4f1ab137a669f212519ea5", class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn && (this.pressableUrl ? t("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: !0 }) : null));
|
|
243
|
+
}
|
|
244
|
+
get el() {
|
|
245
|
+
return i(this);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
l.style = s;
|
|
249
|
+
export {
|
|
250
|
+
l as eds_alert
|
|
251
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as o, h as e } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
const d = class {
|
|
3
|
+
constructor(i) {
|
|
4
|
+
o(this, i), this.isAuthenticated = !1;
|
|
5
|
+
}
|
|
6
|
+
componentWillLoad() {
|
|
7
|
+
const i = new Promise((a) => {
|
|
8
|
+
document.addEventListener("initKeycloak", (t) => {
|
|
9
|
+
a(t.detail);
|
|
10
|
+
}, { once: !0 });
|
|
11
|
+
}), n = new Promise((a) => {
|
|
12
|
+
document.addEventListener("authStatusChanged", (t) => {
|
|
13
|
+
var s;
|
|
14
|
+
this.isAuthenticated = (s = t.detail) === null || s === void 0 ? void 0 : s.authenticated, a(t.detail);
|
|
15
|
+
}, { once: !0 });
|
|
16
|
+
});
|
|
17
|
+
this.combinedInitPromise = Promise.all([i, n]);
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return e("div", { key: "f7ff644cea84bfc78190afcfa33f1f6d6c6de29a" }, e("eds-splash-screen", { key: "5e04f163eafe8f0d55394b8f508386bac013907e", inverse: !0, initPromise: this.combinedInitPromise }), e("eds-login", { key: "94c9dc0546e48fe8f9e6fc17fde9dcbf75fbe3bc", "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), e("main", { key: "975cfb32924ecf0a4bb7d8f4788792eae500e166" }, this.isAuthenticated ? e("h1", null, "Welcome, authenticated user!") : e("h1", null, "Please log in.")));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
d as eds_app_root
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),c=class{constructor(i){e.registerInstance(this,i),this.isAuthenticated=!1}componentWillLoad(){const i=new Promise(a=>{document.addEventListener("initKeycloak",t=>{a(t.detail)},{once:!0})}),s=new Promise(a=>{document.addEventListener("authStatusChanged",t=>{var n;this.isAuthenticated=(n=t.detail)===null||n===void 0?void 0:n.authenticated,a(t.detail)},{once:!0})});this.combinedInitPromise=Promise.all([i,s])}render(){return e.h("div",{key:"f7ff644cea84bfc78190afcfa33f1f6d6c6de29a"},e.h("eds-splash-screen",{key:"5e04f163eafe8f0d55394b8f508386bac013907e",inverse:!0,initPromise:this.combinedInitPromise}),e.h("eds-login",{key:"94c9dc0546e48fe8f9e6fc17fde9dcbf75fbe3bc","keycloak-url":"http://localhost:8080","keycloak-realm":"nigeor-realm","keycloak-client-id":"stencil-app"}),e.h("main",{key:"975cfb32924ecf0a4bb7d8f4788792eae500e166"},this.isAuthenticated?e.h("h1",null,"Welcome, authenticated user!"):e.h("h1",null,"Please log in.")))}};exports.eds_app_root=c;
|