@ebrains/vue 0.9.2-beta → 0.9.3-beta
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/analytics-44b1416b-3vYuu4Xs.mjs +28 -0
- package/analytics-44b1416b-ol77SdQE.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-2554aad6-CCcV5UJZ.mjs +131 -0
- package/color-2554aad6-D1hFGX4H.js +1 -0
- package/color-primary-palette_6.entry-CloKiAKI.mjs +300 -0
- package/color-primary-palette_6.entry-DnBuZqiu.js +1 -0
- package/components-section.entry-BZl-upvI.js +162 -0
- package/components-section.entry-DEtf0V8r.mjs +351 -0
- package/copy-03b72cb6-B_WCNQrG.mjs +6 -0
- package/copy-03b72cb6-CZAFAegx.js +3 -0
- package/correct-use-of-colors.entry-CvrVVhIA.mjs +59 -0
- package/correct-use-of-colors.entry-ajROARV6.js +1 -0
- package/docs-palettes.entry-CegYRhKo.js +1 -0
- package/docs-palettes.entry-OWUmgE8-.mjs +22 -0
- package/docs-tokens.entry-BIwcLv8t.js +1 -0
- package/docs-tokens.entry-D720jRIB.mjs +30 -0
- package/eds-accordion.entry-Ct4upGzD.mjs +48 -0
- package/eds-accordion.entry-D5Qn9bWB.js +4 -0
- package/eds-alert.entry-D9ClanEp.js +739 -0
- package/eds-alert.entry-D9R2BeLM.mjs +825 -0
- package/eds-app-root.entry-C-CwU-8Y.js +1 -0
- package/eds-app-root.entry-DPM5X6uN.mjs +25 -0
- package/eds-avatar_27.entry-7vAHtj7m.mjs +33545 -0
- package/eds-avatar_27.entry-CnmtSNAS.js +31838 -0
- package/eds-card-desc_2.entry-1GoZmzeQ.mjs +53 -0
- package/eds-card-desc_2.entry-BfOXVZi0.js +1 -0
- package/eds-card-generic.entry-BKpFgWlR.js +1 -0
- package/eds-card-generic.entry-CT7jqo3p.mjs +56 -0
- package/eds-card-project.entry-BbLZfxAE.js +1 -0
- package/eds-card-project.entry-O11d3day.mjs +44 -0
- package/eds-card-section.entry-BWDrARpV.js +1 -0
- package/eds-card-section.entry-CXFOGMeJ.mjs +30 -0
- package/eds-card-tags.entry-Debtxwjy.mjs +13 -0
- package/eds-card-tags.entry-Do7oGWtS.js +1 -0
- package/eds-card-tool.entry-CXluEgpO.mjs +56 -0
- package/eds-card-tool.entry-kxsYfCOl.js +1 -0
- package/eds-card-wrapper.entry-DnHxiCgs.js +1 -0
- package/eds-card-wrapper.entry-Dyrfqp6K.mjs +24 -0
- package/eds-code-block.entry-B2tVEczx.js +9 -0
- package/eds-code-block.entry-BIGwear1.mjs +1623 -0
- package/eds-cookies-preference.entry-BwTBWuc7.mjs +20 -0
- package/eds-cookies-preference.entry-mbjVkbaf.js +1 -0
- package/eds-feedback.entry-CxE8Mda2.js +1 -0
- package/eds-feedback.entry-DQZP2iFN.mjs +53 -0
- package/eds-frame.entry-BzGgy3Ya.mjs +67 -0
- package/eds-frame.entry-CGFInzxQ.js +1 -0
- package/eds-icon-arrow-diagonal.entry-BzMthIH3.js +1 -0
- package/eds-icon-arrow-diagonal.entry-D0nObc1G.mjs +13 -0
- package/eds-icon-arrow-right.entry-BGLDpWIT.mjs +13 -0
- package/eds-icon-arrow-right.entry-DPLcd0Dg.js +1 -0
- package/eds-icon-bluesky.entry-ZXTtFyYw.mjs +13 -0
- package/eds-icon-bluesky.entry-bnwTCSoD.js +1 -0
- package/eds-icon-bookmark.entry-BV8nKCLz.mjs +13 -0
- package/eds-icon-bookmark.entry-vBTnOEht.js +1 -0
- package/eds-icon-chevron-down.entry-9YeZRA_B.mjs +13 -0
- package/eds-icon-chevron-down.entry-BNSIoEMh.js +1 -0
- package/eds-icon-chevron-left.entry-BBKqN2RH.js +1 -0
- package/eds-icon-chevron-left.entry-Bm5LaJAt.mjs +13 -0
- package/eds-icon-chevron-right.entry-ChbDkmms.mjs +13 -0
- package/eds-icon-chevron-right.entry-CieI-tuC.js +1 -0
- package/eds-icon-chevron-up.entry-BqkKRoL-.js +1 -0
- package/eds-icon-chevron-up.entry-D3DkXrLO.mjs +13 -0
- package/eds-icon-close.entry-4xYgUnOY.js +1 -0
- package/eds-icon-close.entry-DQv18xqh.mjs +13 -0
- package/eds-icon-copy.entry-C7-kaujN.mjs +13 -0
- package/eds-icon-copy.entry-DQl13_LK.js +1 -0
- package/eds-icon-eu.entry-B8fNjCUv.js +1 -0
- package/eds-icon-eu.entry-DR5lezcj.mjs +13 -0
- package/eds-icon-external.entry-BaIofxzF.js +1 -0
- package/eds-icon-external.entry-DvY_6Ld0.mjs +13 -0
- package/eds-icon-facebook.entry-D7FANZCQ.mjs +13 -0
- package/eds-icon-facebook.entry-Do2GEkmS.js +1 -0
- package/eds-icon-gitlab.entry-D7FC3Vn4.mjs +13 -0
- package/eds-icon-gitlab.entry-p78Zzlxs.js +1 -0
- package/eds-icon-linkedin.entry-BYQGxGkX.js +1 -0
- package/eds-icon-linkedin.entry-CchbiOIO.mjs +13 -0
- package/eds-icon-loader.entry-C8zfXt5G.mjs +13 -0
- package/eds-icon-loader.entry-Cw7oYrm3.js +1 -0
- package/eds-icon-mastodon.entry-BOgFKnbj.mjs +13 -0
- package/eds-icon-mastodon.entry-C_TXVQJB.js +1 -0
- package/eds-icon-menu.entry-BtdrFvM4.js +1 -0
- package/eds-icon-menu.entry-Dl7Xqhc3.mjs +13 -0
- package/eds-icon-minus.entry-BA5Al4_F.js +1 -0
- package/eds-icon-minus.entry-Bfm78Q48.mjs +13 -0
- package/eds-icon-more.entry-CHzRpt-L.mjs +13 -0
- package/eds-icon-more.entry-mAUgJoHF.js +1 -0
- package/eds-icon-paper.entry-DEiOlvnw.mjs +13 -0
- package/eds-icon-paper.entry-DtE79_lg.js +1 -0
- package/eds-icon-plus.entry-BCc2gk-Y.js +1 -0
- package/eds-icon-plus.entry-DxdfImnp.mjs +13 -0
- package/eds-icon-portal.entry-DgJxnehb.js +1 -0
- package/eds-icon-portal.entry-DygPWj8q.mjs +13 -0
- package/eds-icon-private.entry-BtxnzDjj.js +1 -0
- package/eds-icon-private.entry-ClDqtUa4.mjs +13 -0
- package/eds-icon-public.entry-BKL5QMPS.js +1 -0
- package/eds-icon-public.entry-D0qOA8dF.mjs +13 -0
- package/eds-icon-search.entry-BPeHLF3h.js +1 -0
- package/eds-icon-search.entry-iegCSWzH.mjs +13 -0
- package/eds-icon-star.entry-BP6oBKRH.mjs +13 -0
- package/eds-icon-star.entry-DSHqvj6t.js +1 -0
- package/eds-icon-success.entry-B2vqFpAU.mjs +13 -0
- package/eds-icon-success.entry-DoaW0KlM.js +1 -0
- package/eds-icon-thumbs-down.entry-CFMyu-CY.js +1 -0
- package/eds-icon-thumbs-down.entry-CmV8Km2F.mjs +13 -0
- package/eds-icon-thumbs-up.entry-8RPnzfnW.js +1 -0
- package/eds-icon-thumbs-up.entry-DhfFxKPT.mjs +13 -0
- package/eds-icon-tutorial.entry-B3NRKCnl.mjs +13 -0
- package/eds-icon-tutorial.entry-ImfBSV9b.js +1 -0
- package/eds-icon-twitter.entry-BLvpOiN-.js +1 -0
- package/eds-icon-twitter.entry-Da3X1sWO.mjs +13 -0
- package/eds-icon-unknown.entry--9_uerA-.js +1 -0
- package/eds-icon-unknown.entry-DH3YcJSO.mjs +13 -0
- package/eds-icon-updown.entry-BU4FzzAC.js +1 -0
- package/eds-icon-updown.entry-D6t6TWtG.mjs +13 -0
- package/eds-icon-user.entry-pb-JM7tE.mjs +13 -0
- package/eds-icon-user.entry-yNOw7Z1J.js +1 -0
- package/eds-icon-youtube.entry-CIx5D-1i.mjs +13 -0
- package/eds-icon-youtube.entry-CNH9Mxfw.js +1 -0
- package/eds-login_2.entry-shWfmpH4.mjs +981 -0
- package/eds-login_2.entry-swrZnwUp.js +9 -0
- package/eds-matomo-notice.entry-DD0R8UUN.mjs +90 -0
- package/eds-matomo-notice.entry-cucI3F6F.js +1 -0
- package/eds-pagination_2.entry-Cmqe9RbB.mjs +258 -0
- package/eds-pagination_2.entry-DFO92YFs.js +1 -0
- package/eds-progress-bar.entry-CIkJEHf9.mjs +21 -0
- package/eds-progress-bar.entry-CUoQ0OmO.js +1 -0
- package/eds-rating.entry-BJZaV3ft.js +1 -0
- package/eds-rating.entry-BaneuoOA.mjs +61 -0
- package/eds-section-core_2.entry-dmjdE4gJ.mjs +39 -0
- package/eds-section-core_2.entry-wnSqKsfm.js +1 -0
- package/eds-spinner.entry-BwIR2ZO2.mjs +36 -0
- package/eds-spinner.entry-Cdu4PTNJ.js +1 -0
- package/eds-switch.entry-8g9JkW0c.js +1 -0
- package/eds-switch.entry-BOxsYeYC.mjs +20 -0
- package/eds-tabs.entry-CdlLmrmB.js +7794 -0
- package/eds-tabs.entry-DRJv1vVW.mjs +7897 -0
- package/eds-timeline.entry-AsApD57a.mjs +7839 -0
- package/eds-timeline.entry-MDj5oqZG.js +7794 -0
- package/eds-toast-manager.entry-Bri3h_MP.mjs +36 -0
- package/eds-toast-manager.entry-zrDxthPz.js +1 -0
- package/eds-toast.entry-B1RS9m4v.js +3 -0
- package/eds-toast.entry-BNYlJ84c.mjs +61 -0
- package/eds-tooltip.entry-B6UpJ0wf.js +1 -0
- package/eds-tooltip.entry-Ci5te9B_.mjs +77 -0
- package/eds-trl.entry-CuUDfGYw.js +1 -0
- package/eds-trl.entry-Dz7LP4G1.mjs +34 -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-CYXsk3TR.mjs +42 -0
- package/incorrect-use-of-colors.entry-CfmdbA7l.js +1 -0
- package/index-39c58238-BwYCDOHZ.mjs +44 -0
- package/index-39c58238-SQ-JC-LH.js +1 -0
- package/index-7ljGsgwC.js +21 -0
- package/index-l365C9dI.mjs +3617 -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-DxZ7v-wS.js +6 -0
- package/logo-space.entry-GOUZQmu9.mjs +19 -0
- package/logo-variations-horizontal_2.entry-CRdycvC5.js +7 -0
- package/logo-variations-horizontal_2.entry-DimbU2IU.mjs +29 -0
- package/logo-variations-tabs.entry-5kLk6tXo.js +1 -0
- package/logo-variations-tabs.entry-Uc3TLufg.mjs +22 -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-13RSC-bu.js +1 -0
- package/logo-wrong-usage.entry-CYcqaVbn.mjs +14 -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-Ck1z1CpA.js +173 -0
- package/svg-repository.entry-IIRiiFbB.mjs +301 -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/toastManager-d9eee791-CEYNwx25.mjs +30 -0
- package/toastManager-d9eee791-DvR_vUPI.js +1 -0
- package/token-list_3.entry-CLlUT7ge.js +1 -0
- package/token-list_3.entry-CQ9aUIVd.mjs +247 -0
- package/token-ratios.entry-DkgSpwqw.mjs +25 -0
- package/token-ratios.entry-Dtrkv16c.js +1 -0
- package/token-typography.entry-CgJdJgCR.js +2 -0
- package/token-typography.entry-CrMCS1R0.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,36 @@
|
|
|
1
|
+
import { r as o, h as e, g as i } from "./index-l365C9dI.mjs";
|
|
2
|
+
import { t as n } from "./toastManager-d9eee791-CEYNwx25.mjs";
|
|
3
|
+
const r = ".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}", d = r, m = class {
|
|
4
|
+
constructor(t) {
|
|
5
|
+
o(this, t), this.toastId = 0, this.toasts = [];
|
|
6
|
+
}
|
|
7
|
+
connectedCallback() {
|
|
8
|
+
n.init(this.hostElement), this.hostElement.addEventListener("show-toast", (t) => {
|
|
9
|
+
const { message: s, intent: a } = t.detail;
|
|
10
|
+
this.addToast(s, a);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Adds a new toast.
|
|
15
|
+
*/
|
|
16
|
+
addToast(t, s) {
|
|
17
|
+
const a = this.toastId++;
|
|
18
|
+
this.toasts = [...this.toasts, { id: a, message: t, intent: s }];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Removes a toast by ID.
|
|
22
|
+
*/
|
|
23
|
+
removeToast(t) {
|
|
24
|
+
this.toasts = this.toasts.filter((s) => s.id !== t);
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return e("div", { key: "cc2aa94e01507dc8c27e82dfa550af5da6eaba3e", class: "toast-container" }, this.toasts.map((t) => e("div", { key: t.id }, e("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))));
|
|
28
|
+
}
|
|
29
|
+
get hostElement() {
|
|
30
|
+
return i(this);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
m.style = d;
|
|
34
|
+
export {
|
|
35
|
+
m as eds_toast_manager
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-7ljGsgwC.js"),i=require("./toastManager-d9eee791-DvR_vUPI.js"),n=".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}",r=n,o=class{constructor(t){s.registerInstance(this,t),this.toastId=0,this.toasts=[]}connectedCallback(){i.toast.init(this.hostElement),this.hostElement.addEventListener("show-toast",t=>{const{message:e,intent:a}=t.detail;this.addToast(e,a)})}addToast(t,e){const a=this.toastId++;this.toasts=[...this.toasts,{id:a,message:t,intent:e}]}removeToast(t){this.toasts=this.toasts.filter(e=>e.id!==t)}render(){return s.h("div",{key:"cc2aa94e01507dc8c27e82dfa550af5da6eaba3e",class:"toast-container"},this.toasts.map(t=>s.h("div",{key:t.id},s.h("eds-toast",{message:t.message,intent:t.intent,onClick:()=>this.removeToast(t.id)}))))}get hostElement(){return s.getElement(this)}};o.style=r;exports.eds_toast_manager=o;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-7ljGsgwC.js"),r=require("./index-39c58238-SQ-JC-LH.js"),o=`.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),
|
|
2
|
+
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
3
|
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}`,a=o,n=r.cva(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"],{variants:{intent:{default:"bg-dark text-light",success:"bg-success text-dark",error:"bg-error text-light",warning:"bg-warning text-dark"}},defaultVariants:{intent:"default"}}),s=class{constructor(t){e.registerInstance(this,t),this.dismissToast=()=>{this.visible=!1},this.message=void 0,this.intent="default",this.duration=5e3,this.visible=!0}componentDidLoad(){const t=this.el.shadowRoot.querySelector("eds-button");this.emitContext(t)}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}connectedCallback(){this.dismissTimeout=setTimeout(this.dismissToast,this.duration)}disconnectedCallback(){clearTimeout(this.dismissTimeout)}render(){if(!this.visible)return null;const t=n({intent:this.intent});return e.h("div",{class:t,role:"alert","aria-live":"assertive"},e.h("div",{class:"flex items-center justify-between gap-4"},e.h("span",{class:"f-ui-01"},this.message),e.h("eds-button",{intent:"tertiary",icon:"close","aria-label":"Close Toast",onClick:()=>this.dismissToast(),"extra-class":"ml-8"})))}get el(){return e.getElement(this)}};s.style=a;exports.eds_toast=s;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { r as i, h as e, g as r } from "./index-l365C9dI.mjs";
|
|
2
|
+
import { c as o } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
3
|
+
const a = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),
|
|
4
|
+
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
5
|
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}`, n = a, l = o(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"], {
|
|
6
|
+
variants: {
|
|
7
|
+
intent: {
|
|
8
|
+
default: "bg-dark text-light",
|
|
9
|
+
success: "bg-success text-dark",
|
|
10
|
+
error: "bg-error text-light",
|
|
11
|
+
warning: "bg-warning text-dark"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
intent: "default"
|
|
16
|
+
}
|
|
17
|
+
}), c = class {
|
|
18
|
+
constructor(t) {
|
|
19
|
+
i(this, t), this.dismissToast = () => {
|
|
20
|
+
this.visible = !1;
|
|
21
|
+
}, this.message = void 0, this.intent = "default", this.duration = 5e3, this.visible = !0;
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
const t = this.el.shadowRoot.querySelector("eds-button");
|
|
25
|
+
this.emitContext(t);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Emits a custom event called `parentContext` for a given button element.
|
|
29
|
+
* This event provides context information about the toast component.
|
|
30
|
+
*
|
|
31
|
+
* @param btnElement - The link element to which the event will be dispatched.
|
|
32
|
+
*/
|
|
33
|
+
emitContext(t) {
|
|
34
|
+
const s = new CustomEvent("parentContext", {
|
|
35
|
+
detail: {
|
|
36
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
37
|
+
identifier: null
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
t.dispatchEvent(s);
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
clearTimeout(this.dismissTimeout);
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
if (!this.visible)
|
|
50
|
+
return null;
|
|
51
|
+
const t = l({ intent: this.intent });
|
|
52
|
+
return e("div", { class: t, role: "alert", "aria-live": "assertive" }, e("div", { class: "flex items-center justify-between gap-4" }, e("span", { class: "f-ui-01" }, this.message), e("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" })));
|
|
53
|
+
}
|
|
54
|
+
get el() {
|
|
55
|
+
return r(this);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
c.style = n;
|
|
59
|
+
export {
|
|
60
|
+
c as eds_toast
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-7ljGsgwC.js"),f=require("./analytics-44b1416b-ol77SdQE.js"),h=".relative{position:relative}.absolute{position:absolute}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.bg-stronger{background-color:var(--grey-900)}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.text-default{color:var(--black)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.-top-8{top:-0.5rem}.left-1\\/2{left:50%}.z-10{z-index:10}.block{display:block}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.py-2{padding-top:0.125rem;padding-bottom:0.125rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}",v=h,p=class{constructor(t){i.registerInstance(this,t),this.content=void 0,this.position="above",this.isVisible=!1,this.isPositioned=!1,this.tooltipStyle={top:"0px",left:"0px",transform:""}}async showTooltip(){var t;await this.updateTooltipPosition(),this.isPositioned=!0,this.isVisible=!0,f.sendAnalytics({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:((t=this.content)===null||t===void 0?void 0:t.toLowerCase())||"",action:"hover"})}hideTooltip(){this.isVisible=!1,this.isPositioned=!1}handleKeyPress(t){t.key==="Escape"&&(this.isVisible=!1,this.isPositioned=!1)}updateTooltipPosition(){var t,o;const s=(t=this.el.shadowRoot)===null||t===void 0?void 0:t.querySelector("slot");if(!s)return;const n=((s==null?void 0:s.assignedNodes({flatten:!0}))||[]).find(e=>e instanceof HTMLElement);if(n){const e=n.getBoundingClientRect(),a=(o=this.el.shadowRoot)===null||o===void 0?void 0:o.querySelector('[role="tooltip"]');if(a){const d=a.offsetWidth,c=a.offsetHeight;let r=0,l=0;switch(this.position){case"above":r=window.scrollY-c-8,l=e.left+e.width/2-d/2;break;case"below":r=c-window.scrollY+18,l=e.left+e.width/2-d/2;break}this.tooltipStyle={top:`${r}px`,left:`${l}px`,transform:"translateX(0)"}}}}render(){return i.h("div",{key:"7bc92c002eaf263a2d10a2391f356f40e23d5998",class:"relative"},i.h("slot",{key:"cc8126196b03fd02bb17701aa4f55d4a406f685a"}),this.isVisible&&this.isPositioned&&this.content&&i.h("div",{key:"00d854649ef43b958081bbb336319a537c181574",class:"rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6",role:"tooltip",style:{top:this.tooltipStyle.top,left:this.tooltipStyle.left,transform:this.tooltipStyle.transform}},this.content))}get el(){return i.getElement(this)}};p.style=v;exports.eds_tooltip=p;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { r as f, h as l, g as c } from "./index-l365C9dI.mjs";
|
|
2
|
+
import { s as h } from "./analytics-44b1416b-3vYuu4Xs.mjs";
|
|
3
|
+
const w = ".relative{position:relative}.absolute{position:absolute}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.bg-stronger{background-color:var(--grey-900)}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.text-default{color:var(--black)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.-top-8{top:-0.5rem}.left-1\\/2{left:50%}.z-10{z-index:10}.block{display:block}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.py-2{padding-top:0.125rem;padding-bottom:0.125rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}", v = w, g = class {
|
|
4
|
+
constructor(t) {
|
|
5
|
+
f(this, t), this.content = void 0, this.position = "above", this.isVisible = !1, this.isPositioned = !1, this.tooltipStyle = { top: "0px", left: "0px", transform: "" };
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Show the tooltip and update its position.
|
|
9
|
+
*/
|
|
10
|
+
async showTooltip() {
|
|
11
|
+
var t;
|
|
12
|
+
await this.updateTooltipPosition(), this.isPositioned = !0, this.isVisible = !0, h({
|
|
13
|
+
category: "ui-component",
|
|
14
|
+
parentContext: null,
|
|
15
|
+
tag: this.el.tagName.toLowerCase(),
|
|
16
|
+
name: ((t = this.content) === null || t === void 0 ? void 0 : t.toLowerCase()) || "",
|
|
17
|
+
action: "hover"
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Hide the tooltip.
|
|
22
|
+
*/
|
|
23
|
+
hideTooltip() {
|
|
24
|
+
this.isVisible = !1, this.isPositioned = !1;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Hide the tooltip when the `Escape` key is pressed.
|
|
28
|
+
*/
|
|
29
|
+
handleKeyPress(t) {
|
|
30
|
+
t.key === "Escape" && (this.isVisible = !1, this.isPositioned = !1);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Update the tooltip's position dynamically based on the slotted element's dimensions and position.
|
|
34
|
+
*/
|
|
35
|
+
updateTooltipPosition() {
|
|
36
|
+
var t, s;
|
|
37
|
+
const i = (t = this.el.shadowRoot) === null || t === void 0 ? void 0 : t.querySelector("slot");
|
|
38
|
+
if (!i)
|
|
39
|
+
return;
|
|
40
|
+
const n = ((i == null ? void 0 : i.assignedNodes({ flatten: !0 })) || []).find((e) => e instanceof HTMLElement);
|
|
41
|
+
if (n) {
|
|
42
|
+
const e = n.getBoundingClientRect(), o = (s = this.el.shadowRoot) === null || s === void 0 ? void 0 : s.querySelector('[role="tooltip"]');
|
|
43
|
+
if (o) {
|
|
44
|
+
const d = o.offsetWidth, p = o.offsetHeight;
|
|
45
|
+
let a = 0, r = 0;
|
|
46
|
+
switch (this.position) {
|
|
47
|
+
case "above":
|
|
48
|
+
a = window.scrollY - p - 8, r = e.left + e.width / 2 - d / 2;
|
|
49
|
+
break;
|
|
50
|
+
case "below":
|
|
51
|
+
a = p - window.scrollY + 18, r = e.left + e.width / 2 - d / 2;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
this.tooltipStyle = {
|
|
55
|
+
top: `${a}px`,
|
|
56
|
+
left: `${r}px`,
|
|
57
|
+
transform: "translateX(0)"
|
|
58
|
+
// No additional horizontal adjustment needed
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
return l("div", { key: "7bc92c002eaf263a2d10a2391f356f40e23d5998", class: "relative" }, l("slot", { key: "cc8126196b03fd02bb17701aa4f55d4a406f685a" }), this.isVisible && this.isPositioned && this.content && l("div", { key: "00d854649ef43b958081bbb336319a537c181574", class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
|
|
65
|
+
top: this.tooltipStyle.top,
|
|
66
|
+
left: this.tooltipStyle.left,
|
|
67
|
+
transform: this.tooltipStyle.transform
|
|
68
|
+
} }, this.content));
|
|
69
|
+
}
|
|
70
|
+
get el() {
|
|
71
|
+
return c(this);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
g.style = v;
|
|
75
|
+
export {
|
|
76
|
+
g as eds_tooltip
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-7ljGsgwC.js"),i=class{constructor(e){t.registerInstance(this,e),this.applications=void 0}getParsedApplications(){let e=[];if(typeof this.applications=="string")try{e=JSON.parse(this.applications||"[]")}catch(r){console.error("Invalid applications trl JSON",r),e=[]}else Array.isArray(this.applications)&&(e=this.applications);return e}calculateProgress(e){return Math.ceil(e/9*100)}render(){const r=this.getParsedApplications().map(a=>({Application:a.name,"Current TRL Stage":`TRL ${a.currentTrl}`,Progress:t.h("div",{class:"w-[200px]"},t.h("eds-progress-bar",{value:this.calculateProgress(a.currentTrl)}))})),s={Application:{format:"code"},"Current TRL Stage":{format:"text"}};return t.h("div",{key:"7f2775e107e053cf1e8091f97915e6bc372c3954",class:"container mx-auto px-4 py-8"},t.h("eds-table",{key:"9576b1c5dc72335ef0f7158fa4eaa44835acd8db","table-data":JSON.stringify(r),config:JSON.stringify(s),"rows-per-page":"2","pagination-enabled":"true","search-enabled":"true","column-size":"default"}))}};exports.eds_trl=i;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as i, h as a } from "./index-l365C9dI.mjs";
|
|
2
|
+
const c = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
i(this, t), this.applications = void 0;
|
|
5
|
+
}
|
|
6
|
+
getParsedApplications() {
|
|
7
|
+
let t = [];
|
|
8
|
+
if (typeof this.applications == "string")
|
|
9
|
+
try {
|
|
10
|
+
t = JSON.parse(this.applications || "[]");
|
|
11
|
+
} catch (e) {
|
|
12
|
+
console.error("Invalid applications trl JSON", e), t = [];
|
|
13
|
+
}
|
|
14
|
+
else Array.isArray(this.applications) && (t = this.applications);
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
calculateProgress(t) {
|
|
18
|
+
return Math.ceil(t / 9 * 100);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const e = this.getParsedApplications().map((r) => ({
|
|
22
|
+
Application: r.name,
|
|
23
|
+
"Current TRL Stage": `TRL ${r.currentTrl}`,
|
|
24
|
+
Progress: a("div", { class: "w-[200px]" }, a("eds-progress-bar", { value: this.calculateProgress(r.currentTrl) }))
|
|
25
|
+
})), s = {
|
|
26
|
+
Application: { format: "code" },
|
|
27
|
+
"Current TRL Stage": { format: "text" }
|
|
28
|
+
};
|
|
29
|
+
return a("div", { key: "7f2775e107e053cf1e8091f97915e6bc372c3954", class: "container mx-auto px-4 py-8" }, a("eds-table", { key: "9576b1c5dc72335ef0f7158fa4eaa44835acd8db", "table-data": JSON.stringify(e), config: JSON.stringify(s), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" }));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
c as eds_trl
|
|
34
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const e=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-eu" viewBox="0 0 640 480">
|
|
2
|
+
<defs>
|
|
3
|
+
<g id="d">
|
|
4
|
+
<g id="b">
|
|
5
|
+
<path id="a" d="m0-1-.3 1 .5.1z"/>
|
|
6
|
+
<use xlink:href="#a" transform="scale(-1 1)"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="c">
|
|
9
|
+
<use xlink:href="#b" transform="rotate(72)"/>
|
|
10
|
+
<use xlink:href="#b" transform="rotate(144)"/>
|
|
11
|
+
</g>
|
|
12
|
+
<use xlink:href="#c" transform="scale(-1 1)"/>
|
|
13
|
+
</g>
|
|
14
|
+
</defs>
|
|
15
|
+
<path fill="#039" d="M0 0h640v480H0z"/>
|
|
16
|
+
<g fill="#fc0" transform="translate(320 242.3) scale(23.7037)">
|
|
17
|
+
<use xlink:href="#d" width="100%" height="100%" y="-6"/>
|
|
18
|
+
<use xlink:href="#d" width="100%" height="100%" y="6"/>
|
|
19
|
+
<g id="e">
|
|
20
|
+
<use xlink:href="#d" width="100%" height="100%" x="-6"/>
|
|
21
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(-144 -2.3 -2.1)"/>
|
|
22
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(144 -2.1 -2.3)"/>
|
|
23
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -4.7 -2)"/>
|
|
24
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -5 .5)"/>
|
|
25
|
+
</g>
|
|
26
|
+
<use xlink:href="#e" width="100%" height="100%" transform="scale(-1 1)"/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>`;exports.euSvg=e;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const e = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-eu" viewBox="0 0 640 480">
|
|
2
|
+
<defs>
|
|
3
|
+
<g id="d">
|
|
4
|
+
<g id="b">
|
|
5
|
+
<path id="a" d="m0-1-.3 1 .5.1z"/>
|
|
6
|
+
<use xlink:href="#a" transform="scale(-1 1)"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="c">
|
|
9
|
+
<use xlink:href="#b" transform="rotate(72)"/>
|
|
10
|
+
<use xlink:href="#b" transform="rotate(144)"/>
|
|
11
|
+
</g>
|
|
12
|
+
<use xlink:href="#c" transform="scale(-1 1)"/>
|
|
13
|
+
</g>
|
|
14
|
+
</defs>
|
|
15
|
+
<path fill="#039" d="M0 0h640v480H0z"/>
|
|
16
|
+
<g fill="#fc0" transform="translate(320 242.3) scale(23.7037)">
|
|
17
|
+
<use xlink:href="#d" width="100%" height="100%" y="-6"/>
|
|
18
|
+
<use xlink:href="#d" width="100%" height="100%" y="6"/>
|
|
19
|
+
<g id="e">
|
|
20
|
+
<use xlink:href="#d" width="100%" height="100%" x="-6"/>
|
|
21
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(-144 -2.3 -2.1)"/>
|
|
22
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(144 -2.1 -2.3)"/>
|
|
23
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -4.7 -2)"/>
|
|
24
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -5 .5)"/>
|
|
25
|
+
</g>
|
|
26
|
+
<use xlink:href="#e" width="100%" height="100%" transform="scale(-1 1)"/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>`;
|
|
29
|
+
export {
|
|
30
|
+
e
|
|
31
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const o = ` <svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M10.9481 19.9556C16.0263 19.4781 20 15.2031 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 14.7129 3.26027 18.6643 7.64847 19.722V12.0931H6V9.36828H7.64847V7.73228C7.64847 5.50935 8.5793 4.1875 11.2239 4.1875H13.4256V6.91266H12.0494C11.0199 6.91266 10.9518 7.29347 10.9518 8.00415L10.9481 9.36797H13.4412L13.1494 12.0928H10.9481V19.9556Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;
|
|
13
|
+
export {
|
|
14
|
+
o as f
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const o=` <svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M10.9481 19.9556C16.0263 19.4781 20 15.2031 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 14.7129 3.26027 18.6643 7.64847 19.722V12.0931H6V9.36828H7.64847V7.73228C7.64847 5.50935 8.5793 4.1875 11.2239 4.1875H13.4256V6.91266H12.0494C11.0199 6.91266 10.9518 7.29347 10.9518 8.00415L10.9481 9.36797H13.4412L13.1494 12.0928H10.9481V19.9556Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;exports.facebook=o;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { JSX } from '../../../../dist/packages/components';
|
|
2
|
+
export declare const EdsAccordion: import('vue').DefineSetupFnComponent<JSX.EdsAccordion & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsAccordion & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
3
|
+
export declare const EdsAlert: import('vue').DefineSetupFnComponent<JSX.EdsAlert & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsAlert & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
4
|
+
export declare const EdsAvatar: import('vue').DefineSetupFnComponent<JSX.EdsAvatar & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsAvatar & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
5
|
+
export declare const EdsBlockBreak: import('vue').DefineSetupFnComponent<JSX.EdsBlockBreak & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsBlockBreak & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
6
|
+
export declare const EdsBreadcrumb: import('vue').DefineSetupFnComponent<JSX.EdsBreadcrumb & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsBreadcrumb & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
7
|
+
export declare const EdsButton: import('vue').DefineSetupFnComponent<JSX.EdsButton & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsButton & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
8
|
+
export declare const EdsCardGeneric: import('vue').DefineSetupFnComponent<JSX.EdsCardGeneric & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsCardGeneric & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
9
|
+
export declare const EdsCardSection: import('vue').DefineSetupFnComponent<JSX.EdsCardSection & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsCardSection & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
10
|
+
export declare const EdsCodeBlock: import('vue').DefineSetupFnComponent<JSX.EdsCodeBlock & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsCodeBlock & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
11
|
+
export declare const EdsDropdown: import('vue').DefineSetupFnComponent<JSX.EdsDropdown & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsDropdown & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
12
|
+
export declare const EdsFeedback: import('vue').DefineSetupFnComponent<JSX.EdsFeedback & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsFeedback & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
13
|
+
export declare const EdsFooter: import('vue').DefineSetupFnComponent<JSX.EdsFooter & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsFooter & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
14
|
+
export declare const EdsForm: import('vue').DefineSetupFnComponent<JSX.EdsForm & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsForm & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
15
|
+
export declare const EdsFullscreenMenu: import('vue').DefineSetupFnComponent<JSX.EdsFullscreenMenu & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsFullscreenMenu & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
16
|
+
export declare const EdsHeader: import('vue').DefineSetupFnComponent<JSX.EdsHeader & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsHeader & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
17
|
+
export declare const EdsIconWrapper: import('vue').DefineSetupFnComponent<JSX.EdsIconWrapper & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsIconWrapper & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
18
|
+
export declare const EdsImg: import('vue').DefineSetupFnComponent<JSX.EdsImg & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsImg & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
19
|
+
export declare const EdsInputField: import('vue').DefineSetupFnComponent<JSX.EdsInputField & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsInputField & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
20
|
+
export declare const EdsLink: import('vue').DefineSetupFnComponent<JSX.EdsLink & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsLink & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
21
|
+
export declare const EdsLogo: import('vue').DefineSetupFnComponent<JSX.EdsLogo & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsLogo & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
22
|
+
export declare const EdsMatomoNotice: import('vue').DefineSetupFnComponent<JSX.EdsMatomoNotice & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsMatomoNotice & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
23
|
+
export declare const EdsModal: import('vue').DefineSetupFnComponent<JSX.EdsModal & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsModal & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
24
|
+
export declare const EdsPagination: import('vue').DefineSetupFnComponent<JSX.EdsPagination & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsPagination & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
25
|
+
export declare const EdsProgressBar: import('vue').DefineSetupFnComponent<JSX.EdsProgressBar & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsProgressBar & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
26
|
+
export declare const EdsRating: import('vue').DefineSetupFnComponent<JSX.EdsRating & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsRating & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
27
|
+
export declare const EdsSectionCore: import('vue').DefineSetupFnComponent<JSX.EdsSectionCore & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSectionCore & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
28
|
+
export declare const EdsSocialNetworks: import('vue').DefineSetupFnComponent<JSX.EdsSocialNetworks & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSocialNetworks & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
29
|
+
export declare const EdsSpinner: import('vue').DefineSetupFnComponent<JSX.EdsSpinner & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSpinner & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
30
|
+
export declare const EdsSplashScreen: import('vue').DefineSetupFnComponent<JSX.EdsSplashScreen & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSplashScreen & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
31
|
+
export declare const EdsSteps: import('vue').DefineSetupFnComponent<JSX.EdsSteps & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSteps & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
32
|
+
export declare const EdsStepsV2: import('vue').DefineSetupFnComponent<JSX.EdsStepsV2 & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsStepsV2 & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
33
|
+
export declare const EdsSwitch: import('vue').DefineSetupFnComponent<JSX.EdsSwitch & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSwitch & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
34
|
+
export declare const EdsTable: import('vue').DefineSetupFnComponent<JSX.EdsTable & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTable & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
35
|
+
export declare const EdsTabs: import('vue').DefineSetupFnComponent<JSX.EdsTabs & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTabs & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
36
|
+
export declare const EdsTag: import('vue').DefineSetupFnComponent<JSX.EdsTag & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTag & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
37
|
+
export declare const EdsTimeline: import('vue').DefineSetupFnComponent<JSX.EdsTimeline & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTimeline & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
38
|
+
export declare const EdsToast: import('vue').DefineSetupFnComponent<JSX.EdsToast & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsToast & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
39
|
+
export declare const EdsTooltip: import('vue').DefineSetupFnComponent<JSX.EdsTooltip & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTooltip & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
40
|
+
export declare const EdsUser: import('vue').DefineSetupFnComponent<JSX.EdsUser & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsUser & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface InputProps<T> {
|
|
2
|
+
modelValue?: T;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Create a callback to define a Vue component wrapper around a Web Component.
|
|
6
|
+
*
|
|
7
|
+
* @prop name - The component tag name (i.e. `ion-button`)
|
|
8
|
+
* @prop componentProps - An array of properties on the
|
|
9
|
+
* component. These usually match up with the @Prop definitions
|
|
10
|
+
* in each component's TSX file.
|
|
11
|
+
* @prop customElement - An option custom element instance to pass
|
|
12
|
+
* to customElements.define. Only set if `includeImportCustomElements: true` in your config.
|
|
13
|
+
* @prop modelProp - The prop that v-model binds to (i.e. value)
|
|
14
|
+
* @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
|
|
15
|
+
*/
|
|
16
|
+
export declare const defineContainer: <Props, VModelType = string | number | boolean>(name: string, defineCustomElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string) => import('vue').DefineSetupFnComponent<Props & InputProps<VModelType>, {}, {}, Props & InputProps<VModelType> & {}, import('vue').PublicProps>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as o, h as e } from "./index-l365C9dI.mjs";
|
|
2
|
+
const a = [
|
|
3
|
+
{
|
|
4
|
+
background: "#9CE142"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
background: "#00C959"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
background: "#00A595"
|
|
11
|
+
}
|
|
12
|
+
], s = [
|
|
13
|
+
{
|
|
14
|
+
background: "#C461FF"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
background: "#5D3DF9"
|
|
18
|
+
}
|
|
19
|
+
], r = [
|
|
20
|
+
{
|
|
21
|
+
background: "#FFA543"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
background: "#FF4D68"
|
|
25
|
+
}
|
|
26
|
+
], l = [
|
|
27
|
+
{
|
|
28
|
+
background: "#3FA9F5"
|
|
29
|
+
},
|
|
30
|
+
...s,
|
|
31
|
+
...r
|
|
32
|
+
], d = class {
|
|
33
|
+
constructor(c) {
|
|
34
|
+
o(this, c);
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return e("div", { key: "1cfc3c78012371498476886214e85fbf6e387626", class: "container" }, e("eds-alert", { key: "33449eeae0bca270a82d32de75d5d7c54d8b8c6c", message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), e("div", { key: "d436f34bf074c175c6308b822c820604a5e272bc", class: "flex" }, e("div", { key: "5f839c0f214b774f13af1499fe3e5f8485f959c5", class: "w-full" }, e("ul", { key: "5cbb81288c0e61431aed523d77f2c6d231c8ce7e", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((c) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: c.background } }))))), e("div", { key: "3622c7c8376208843d3e59c6548e41d9ca8c2b21", class: "w-full" }, e("ul", { key: "d74e34f45e1d377be5f1087a345dee219b1fc5a3", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, l.map((c) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: c.background } })))))));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
d as incorrect_use_of_colors
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-7ljGsgwC.js"),o=[{background:"#9CE142"},{background:"#00C959"},{background:"#00A595"}],s=[{background:"#C461FF"},{background:"#5D3DF9"}],a=[{background:"#FFA543"},{background:"#FF4D68"}],r=[{background:"#3FA9F5"},...s,...a],l=class{constructor(c){e.registerInstance(this,c)}render(){return e.h("div",{key:"1cfc3c78012371498476886214e85fbf6e387626",class:"container"},e.h("eds-alert",{key:"33449eeae0bca270a82d32de75d5d7c54d8b8c6c",message:"Note that, each of the four colour tones cannot be mixed in the same composition.",intent:"error"}),e.h("div",{key:"d436f34bf074c175c6308b822c820604a5e272bc",class:"flex"},e.h("div",{key:"5f839c0f214b774f13af1499fe3e5f8485f959c5",class:"w-full"},e.h("ul",{key:"5cbb81288c0e61431aed523d77f2c6d231c8ce7e",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},o.map(c=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[150px] effect-height flex items-center justify-between p-16",style:{backgroundColor:c.background}}))))),e.h("div",{key:"3622c7c8376208843d3e59c6548e41d9ca8c2b21",class:"w-full"},e.h("ul",{key:"d74e34f45e1d377be5f1087a345dee219b1fc5a3",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},r.map(c=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[90px] effect-height flex items-center justify-between p-16",style:{backgroundColor:c.background}})))))))}};exports.incorrect_use_of_colors=l;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function m(n) {
|
|
2
|
+
var e, t, l = "";
|
|
3
|
+
if (typeof n == "string" || typeof n == "number") l += n;
|
|
4
|
+
else if (typeof n == "object") if (Array.isArray(n)) for (e = 0; e < n.length; e++) n[e] && (t = m(n[e])) && (l && (l += " "), l += t);
|
|
5
|
+
else for (e in n) n[e] && (l && (l += " "), l += e);
|
|
6
|
+
return l;
|
|
7
|
+
}
|
|
8
|
+
function j() {
|
|
9
|
+
for (var n, e, t = 0, l = ""; t < arguments.length; ) (n = arguments[t++]) && (e = m(n)) && (l && (l += " "), l += e);
|
|
10
|
+
return l;
|
|
11
|
+
}
|
|
12
|
+
const f = (n) => typeof n == "boolean" ? "".concat(n) : n === 0 ? "0" : n, y = j, A = (n, e) => (t) => {
|
|
13
|
+
var l;
|
|
14
|
+
if ((e == null ? void 0 : e.variants) == null) return y(n, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
15
|
+
const { variants: d, defaultVariants: u } = e, N = Object.keys(d).map((a) => {
|
|
16
|
+
const r = t == null ? void 0 : t[a], s = u == null ? void 0 : u[a];
|
|
17
|
+
if (r === null) return null;
|
|
18
|
+
const i = f(r) || f(s);
|
|
19
|
+
return d[a][i];
|
|
20
|
+
}), v = t && Object.entries(t).reduce((a, r) => {
|
|
21
|
+
let [s, i] = r;
|
|
22
|
+
return i === void 0 || (a[s] = i), a;
|
|
23
|
+
}, {}), V = e == null || (l = e.compoundVariants) === null || l === void 0 ? void 0 : l.reduce((a, r) => {
|
|
24
|
+
let { class: s, className: i, ...b } = r;
|
|
25
|
+
return Object.entries(b).every((C) => {
|
|
26
|
+
let [c, o] = C;
|
|
27
|
+
return Array.isArray(o) ? o.includes({
|
|
28
|
+
...u,
|
|
29
|
+
...v
|
|
30
|
+
}[c]) : {
|
|
31
|
+
...u,
|
|
32
|
+
...v
|
|
33
|
+
}[c] === o;
|
|
34
|
+
}) ? [
|
|
35
|
+
...a,
|
|
36
|
+
s,
|
|
37
|
+
i
|
|
38
|
+
] : a;
|
|
39
|
+
}, []);
|
|
40
|
+
return y(n, N, V, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
A as c
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function m(n){var e,t,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(t=m(n[e]))&&(l&&(l+=" "),l+=t);else for(e in n)n[e]&&(l&&(l+=" "),l+=e);return l}function j(){for(var n,e,t=0,l="";t<arguments.length;)(n=arguments[t++])&&(e=m(n))&&(l&&(l+=" "),l+=e);return l}const f=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,y=j,A=(n,e)=>t=>{var l;if((e==null?void 0:e.variants)==null)return y(n,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:d,defaultVariants:u}=e,N=Object.keys(d).map(a=>{const r=t==null?void 0:t[a],s=u==null?void 0:u[a];if(r===null)return null;const i=f(r)||f(s);return d[a][i]}),v=t&&Object.entries(t).reduce((a,r)=>{let[s,i]=r;return i===void 0||(a[s]=i),a},{}),V=e==null||(l=e.compoundVariants)===null||l===void 0?void 0:l.reduce((a,r)=>{let{class:s,className:i,...b}=r;return Object.entries(b).every(C=>{let[c,o]=C;return Array.isArray(o)?o.includes({...u,...v}[c]):{...u,...v}[c]===o})?[...a,s,i]:a},[]);return y(n,N,V,t==null?void 0:t.class,t==null?void 0:t.className)};exports.cva=A;
|