@everymatrix/loyalty-level 0.2.8 → 0.2.10
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/components/{LoyaltyLevel-BzJws8-G.js → LoyaltyLevel-BFulMCiM.js} +2 -2
- package/components/{LoyaltyLevel-B4lImGDu.cjs → LoyaltyLevel-BHXpcbZe.cjs} +1 -1
- package/components/{LoyaltyLevel-C5IRTxL3.cjs → LoyaltyLevel-DhFE7P_8.cjs} +1 -1
- package/components/{LoyaltyLevel-uSDbSl-J.js → LoyaltyLevel-djuv309X.js} +2 -2
- package/components/{LoyaltyPagination-DwqIqlFP.js → LoyaltyPagination-0kd-2vyw.js} +2028 -2035
- package/components/LoyaltyPagination-BDLYAGbl.cjs +14 -0
- package/components/LoyaltyPagination-D8xdohN0.cjs +14 -0
- package/components/{LoyaltyPagination-fzOoPxDh.js → LoyaltyPagination-Yz3a65F3.js} +483 -488
- package/es2015/loyalty-level.cjs +1 -1
- package/es2015/loyalty-level.js +2 -2
- package/esnext/loyalty-level.cjs +1 -1
- package/esnext/loyalty-level.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyPagination-CxnhtBhF.cjs +0 -14
- package/components/LoyaltyPagination-D5WM82CZ.cjs +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as at, c as Ce, p as Oe, a as nt, b as y, s as ot, e as be, u as Z, f as rt, g as st, h as it, i as P, j as Le, M as ne, k as e, l as k, m as fe, n as S, o as u, q as Te, I as J, r as C, t as E, v as _, w as dt, x as M, y as h, z as p, A as we, B as ke, C as ct, L as vt, D as yt, E as T, F as R, G as F, H as oe, J as _t, $ as ut, K as Se, N as re, O as Me, P as pt, Q as Ee } from "./LoyaltyPagination-
|
|
1
|
+
import { d as at, c as Ce, p as Oe, a as nt, b as y, s as ot, e as be, u as Z, f as rt, g as st, h as it, i as P, j as Le, M as ne, k as e, l as k, m as fe, n as S, o as u, q as Te, I as J, r as C, t as E, v as _, w as dt, x as M, y as h, z as p, A as we, B as ke, C as ct, L as vt, D as yt, E as T, F as R, G as F, H as oe, J as _t, $ as ut, K as Se, N as re, O as Me, P as pt, Q as Ee } from "./LoyaltyPagination-Yz3a65F3.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -16,7 +16,7 @@ if (typeof window < "u") {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
customElements.define = V(customElements.define), import("./LoyaltyPagination-
|
|
19
|
+
customElements.define = V(customElements.define), import("./LoyaltyPagination-Yz3a65F3.js").then((a) => a.R).then((a) => {
|
|
20
20
|
const d = a.default || a;
|
|
21
21
|
customElements.get("loyalty-pagination") || customElements.define("loyalty-pagination", d.element || d);
|
|
22
22
|
}).catch((a) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./LoyaltyPagination-
|
|
1
|
+
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./LoyaltyPagination-BDLYAGbl.cjs");if(typeof window!="undefined"){let T=function(n){return function(...c){try{return n.apply(this,c)}catch(u){if(u instanceof DOMException&&u.message.includes("has already been used with this registry")||u instanceof Error&&u.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw u}}};customElements.define=T(customElements.define),Promise.resolve().then(()=>require("./LoyaltyPagination-BDLYAGbl.cjs")).then(n=>n.LoyaltyPagination_ce).then(n=>{const c=n.default||n;customElements.get("loyalty-pagination")||customElements.define("loyalty-pagination",c.element||c)}).catch(n=>{console.error("BOOT ERROR:",n)})}const Ee={en:{startingLevel:"Starting Level: {points} points",seeMore:"See More",seeLess:"See Less",current:"Current",next:"Next"},tr:{startingLevel:"Başlangıç Seviyesi: {points} puan",seeMore:"Daha Fazla",seeLess:"Daha Az",current:"Mevcut",next:"Sonraki"},da:{startingLevel:"Startniveau: {points} point",seeMore:"Se mere",seeLess:"Se mindre",current:"Nuværende",next:"Næste"},de:{startingLevel:"Startlevel: {points} Punkte",seeMore:"Mehr anzeigen",seeLess:"Weniger anzeigen",current:"Aktuell",next:"Nächste"},nl:{startingLevel:"Startniveau: {points} punten",seeMore:"Meer tonen",seeLess:"Minder tonen",current:"Huidig",next:"Volgende"},fr:{startingLevel:"Niveau de départ : {points} points",seeMore:"Voir plus",seeLess:"Voir moins",current:"Actuel",next:"Suivant"},hu:{startingLevel:"Kezdő szint: {points} pont",seeMore:"Több megjelenítése",seeLess:"Kevesebb megjelenítése",current:"Jelenlegi",next:"Következő"}},ne="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='800px'%20height='800px'%20viewBox='0%200%20120%20120'%20fill='none'%3e%3crect%20width='120'%20height='120'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.2503%2038.4816C33.2603%2037.0472%2034.4199%2035.8864%2035.8543%2035.875H83.1463C84.5848%2035.875%2085.7503%2037.0431%2085.7503%2038.4816V80.5184C85.7403%2081.9528%2084.5807%2083.1136%2083.1463%2083.125H35.8543C34.4158%2083.1236%2033.2503%2081.957%2033.2503%2080.5184V38.4816ZM80.5006%2041.1251H38.5006V77.8751L62.8921%2053.4783C63.9172%2052.4536%2065.5788%2052.4536%2066.6039%2053.4783L80.5006%2067.4013V41.1251ZM43.75%2051.6249C43.75%2054.5244%2046.1005%2056.8749%2049%2056.8749C51.8995%2056.8749%2054.25%2054.5244%2054.25%2051.6249C54.25%2048.7254%2051.8995%2046.3749%2049%2046.3749C46.1005%2046.3749%2043.75%2048.7254%2043.75%2051.6249Z'%20fill='%23687787'/%3e%3c/svg%3e";var Ie=e.from_html('<article class="loyalty-level__card loyalty-level__card--skeleton" aria-busy="true"><header class="loyalty-level__head"><span class="loyalty-level__skeleton loyalty-level__skeleton--badge"></span> <div class="loyalty-level__headings"><span class="loyalty-level__skeleton loyalty-level__skeleton--name"></span> <span class="loyalty-level__skeleton loyalty-level__skeleton--starting"></span></div></header> <span class="loyalty-level__skeleton loyalty-level__skeleton--action"></span></article>'),ae=e.from_html('<span class="loyalty-level__tag"> </span>'),Te=e.from_html("<div></div>"),Oe=e.from_html('<button class="loyalty-level__action" type="button"> </button>'),Ce=e.from_html('<article><header class="loyalty-level__head"><img class="loyalty-level__badge"/> <div class="loyalty-level__headings"><span class="loyalty-level__name"> </span> <span class="loyalty-level__starting"> </span></div> <!></header> <!> <!></article>'),ze=e.from_html('<div class="loyalty-level__sentinel" aria-hidden="true"></div>'),De=e.from_html('<img class="loyalty-level__badge"/>'),Ue=e.from_html('<div class="loyalty-level__benefits"></div>'),Ae=e.from_html('<div class="loyalty-level__modal-overlay" role="presentation"><div class="loyalty-level__modal" role="dialog" aria-modal="true" tabindex="-1"><div class="loyalty-level__modal-close-wrapper"><button class="loyalty-level__modal-close" type="button" aria-label="close">×</button></div> <div class="loyalty-level__modal-content"><header class="loyalty-level__modal-head"><!> <div class="loyalty-level__headings"><span class="loyalty-level__name"> </span> <span class="loyalty-level__starting"> </span></div> <!></header> <!></div></div></div>'),Fe=e.from_html('<div class="loyalty-level"><div class="loyalty-level__grid"><!></div> <!> <!></div> <!>',1);const Ne={hash:"svelte-nbxilv",code:`
|
|
2
2
|
@layer loyalty-level-component {.loyalty-level {width:100%;box-sizing:border-box;}.loyalty-level__grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(min(100%, 326px), 1fr));gap:12px;align-items:stretch;}.loyalty-level__card {display:flex;flex-direction:column;gap:16px;padding:16px;background-color:var(--app-container-bg-default, #022652);border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));border-radius:6px;box-sizing:border-box;max-height:242px;overflow:hidden;line-height:1.4;}.loyalty-level__card--expanded {max-height:none;overflow:visible;}.loyalty-level__head {display:flex;align-items:flex-start;gap:6px;}.loyalty-level__badge {width:40px;height:40px;flex-shrink:0;}.loyalty-level__headings {display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;}.loyalty-level__name {color:var(--text-default, #ffffff);font-size:14px;font-weight:500;text-transform:uppercase;line-height:1.4;}.loyalty-level__tag {flex-shrink:0;align-self:flex-start;padding:10px;border-radius:100px;background:var(--badges-element-default, rgba(255, 204, 0, 0.05));color:var(--text-brand, #ffcc00);font-size:12px;font-weight:500;}.loyalty-level__starting {color:var(--text-subtle, #dfe3e8);font-size:14px;font-weight:400;}.loyalty-level__benefits {color:var(--text-subtle, #dfe3e8);font-size:13px;line-height:1.5;flex:1 1 auto;min-height:0;overflow:hidden;}.loyalty-level__card--expanded .loyalty-level__benefits {flex:none;overflow:visible;}.loyalty-level__benefits ul {margin:0;padding-left:18px;list-style:disc;}.loyalty-level__benefits li {margin-bottom:6px;}.loyalty-level__action {margin-top:auto;width:100%;padding:8px 16px;border:1px solid var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));border-radius:6px;background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));color:var(--button-secondary-text-default, #ffffff);font-size:12px;font-weight:400;cursor:pointer;}.loyalty-level__modal-overlay {position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background-color:rgba(0, 0, 0, 0.7);backdrop-filter:blur(3px);}.loyalty-level__modal {position:relative;width:100%;max-width:40dvw;max-height:90dvh;padding:24px 16px;background-color:var(--app-container-bg-default, #022652);border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));border-radius:8px;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;}.loyalty-level__modal-content {padding:8px;display:flex;flex-direction:column;gap:16px;flex:1 1 auto;min-height:0;overflow:hidden;}.loyalty-level__modal-content .loyalty-level__benefits {flex:1 1 auto;min-height:0;overflow-y:auto;}.loyalty-level__modal-head {display:flex;align-items:flex-start;gap:12px;flex-shrink:0;}.loyalty-level__modal-close-wrapper {display:flex;justify-content:flex-end;flex-shrink:0;}.loyalty-level__modal-close {border:none;background:transparent;color:var(--icon-default, #b3becb);font-size:25px;line-height:1;cursor:pointer;}.loyalty-level__sentinel {width:100%;height:1px;}.loyalty-level__card--skeleton {pointer-events:none;justify-content:flex-start;height:180px;}.loyalty-level__skeleton {display:block;border-radius:4px;background:linear-gradient(
|
|
3
3
|
90deg,
|
|
4
4
|
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./LoyaltyPagination-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./LoyaltyPagination-D8xdohN0.cjs");if(typeof window<"u"){let I=function(n){return function(...d){try{return n.apply(this,d)}catch(p){if(p instanceof DOMException&&p.message.includes("has already been used with this registry")||p instanceof Error&&p.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw p}}};customElements.define=I(customElements.define),Promise.resolve().then(()=>require("./LoyaltyPagination-D8xdohN0.cjs")).then(n=>n.LoyaltyPagination_ce).then(n=>{const d=n.default||n;customElements.get("loyalty-pagination")||customElements.define("loyalty-pagination",d.element||d)}).catch(n=>{console.error("BOOT ERROR:",n)})}const Ee={en:{startingLevel:"Starting Level: {points} points",seeMore:"See More",seeLess:"See Less",current:"Current",next:"Next"},tr:{startingLevel:"Başlangıç Seviyesi: {points} puan",seeMore:"Daha Fazla",seeLess:"Daha Az",current:"Mevcut",next:"Sonraki"},da:{startingLevel:"Startniveau: {points} point",seeMore:"Se mere",seeLess:"Se mindre",current:"Nuværende",next:"Næste"},de:{startingLevel:"Startlevel: {points} Punkte",seeMore:"Mehr anzeigen",seeLess:"Weniger anzeigen",current:"Aktuell",next:"Nächste"},nl:{startingLevel:"Startniveau: {points} punten",seeMore:"Meer tonen",seeLess:"Minder tonen",current:"Huidig",next:"Volgende"},fr:{startingLevel:"Niveau de départ : {points} points",seeMore:"Voir plus",seeLess:"Voir moins",current:"Actuel",next:"Suivant"},hu:{startingLevel:"Kezdő szint: {points} pont",seeMore:"Több megjelenítése",seeLess:"Kevesebb megjelenítése",current:"Jelenlegi",next:"Következő"}},le="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='800px'%20height='800px'%20viewBox='0%200%20120%20120'%20fill='none'%3e%3crect%20width='120'%20height='120'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.2503%2038.4816C33.2603%2037.0472%2034.4199%2035.8864%2035.8543%2035.875H83.1463C84.5848%2035.875%2085.7503%2037.0431%2085.7503%2038.4816V80.5184C85.7403%2081.9528%2084.5807%2083.1136%2083.1463%2083.125H35.8543C34.4158%2083.1236%2033.2503%2081.957%2033.2503%2080.5184V38.4816ZM80.5006%2041.1251H38.5006V77.8751L62.8921%2053.4783C63.9172%2052.4536%2065.5788%2052.4536%2066.6039%2053.4783L80.5006%2067.4013V41.1251ZM43.75%2051.6249C43.75%2054.5244%2046.1005%2056.8749%2049%2056.8749C51.8995%2056.8749%2054.25%2054.5244%2054.25%2051.6249C54.25%2048.7254%2051.8995%2046.3749%2049%2046.3749C46.1005%2046.3749%2043.75%2048.7254%2043.75%2051.6249Z'%20fill='%23687787'/%3e%3c/svg%3e";var Ie=e.from_html('<article class="loyalty-level__card loyalty-level__card--skeleton" aria-busy="true"><header class="loyalty-level__head"><span class="loyalty-level__skeleton loyalty-level__skeleton--badge"></span> <div class="loyalty-level__headings"><span class="loyalty-level__skeleton loyalty-level__skeleton--name"></span> <span class="loyalty-level__skeleton loyalty-level__skeleton--starting"></span></div></header> <span class="loyalty-level__skeleton loyalty-level__skeleton--action"></span></article>'),ne=e.from_html('<span class="loyalty-level__tag"> </span>'),Te=e.from_html("<div></div>"),Oe=e.from_html('<button class="loyalty-level__action" type="button"> </button>'),Ce=e.from_html('<article><header class="loyalty-level__head"><img class="loyalty-level__badge"/> <div class="loyalty-level__headings"><span class="loyalty-level__name"> </span> <span class="loyalty-level__starting"> </span></div> <!></header> <!> <!></article>'),ze=e.from_html('<div class="loyalty-level__sentinel" aria-hidden="true"></div>'),De=e.from_html('<img class="loyalty-level__badge"/>'),Ue=e.from_html('<div class="loyalty-level__benefits"></div>'),Ae=e.from_html('<div class="loyalty-level__modal-overlay" role="presentation"><div class="loyalty-level__modal" role="dialog" aria-modal="true" tabindex="-1"><div class="loyalty-level__modal-close-wrapper"><button class="loyalty-level__modal-close" type="button" aria-label="close">×</button></div> <div class="loyalty-level__modal-content"><header class="loyalty-level__modal-head"><!> <div class="loyalty-level__headings"><span class="loyalty-level__name"> </span> <span class="loyalty-level__starting"> </span></div> <!></header> <!></div></div></div>'),Fe=e.from_html('<div class="loyalty-level"><div class="loyalty-level__grid"><!></div> <!> <!></div> <!>',1);const Ne={hash:"svelte-nbxilv",code:`
|
|
2
2
|
@layer loyalty-level-component {.loyalty-level {width:100%;box-sizing:border-box;}.loyalty-level__grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(min(100%, 326px), 1fr));gap:12px;align-items:stretch;}.loyalty-level__card {display:flex;flex-direction:column;gap:16px;padding:16px;background-color:var(--app-container-bg-default, #022652);border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));border-radius:6px;box-sizing:border-box;max-height:242px;overflow:hidden;line-height:1.4;}.loyalty-level__card--expanded {max-height:none;overflow:visible;}.loyalty-level__head {display:flex;align-items:flex-start;gap:6px;}.loyalty-level__badge {width:40px;height:40px;flex-shrink:0;}.loyalty-level__headings {display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;}.loyalty-level__name {color:var(--text-default, #ffffff);font-size:14px;font-weight:500;text-transform:uppercase;line-height:1.4;}.loyalty-level__tag {flex-shrink:0;align-self:flex-start;padding:10px;border-radius:100px;background:var(--badges-element-default, rgba(255, 204, 0, 0.05));color:var(--text-brand, #ffcc00);font-size:12px;font-weight:500;}.loyalty-level__starting {color:var(--text-subtle, #dfe3e8);font-size:14px;font-weight:400;}.loyalty-level__benefits {color:var(--text-subtle, #dfe3e8);font-size:13px;line-height:1.5;flex:1 1 auto;min-height:0;overflow:hidden;}.loyalty-level__card--expanded .loyalty-level__benefits {flex:none;overflow:visible;}.loyalty-level__benefits ul {margin:0;padding-left:18px;list-style:disc;}.loyalty-level__benefits li {margin-bottom:6px;}.loyalty-level__action {margin-top:auto;width:100%;padding:8px 16px;border:1px solid var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));border-radius:6px;background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));color:var(--button-secondary-text-default, #ffffff);font-size:12px;font-weight:400;cursor:pointer;}.loyalty-level__modal-overlay {position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background-color:rgba(0, 0, 0, 0.7);backdrop-filter:blur(3px);}.loyalty-level__modal {position:relative;width:100%;max-width:40dvw;max-height:90dvh;padding:24px 16px;background-color:var(--app-container-bg-default, #022652);border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));border-radius:8px;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;}.loyalty-level__modal-content {padding:8px;display:flex;flex-direction:column;gap:16px;flex:1 1 auto;min-height:0;overflow:hidden;}.loyalty-level__modal-content .loyalty-level__benefits {flex:1 1 auto;min-height:0;overflow-y:auto;}.loyalty-level__modal-head {display:flex;align-items:flex-start;gap:12px;flex-shrink:0;}.loyalty-level__modal-close-wrapper {display:flex;justify-content:flex-end;flex-shrink:0;}.loyalty-level__modal-close {border:none;background:transparent;color:var(--icon-default, #b3becb);font-size:25px;line-height:1;cursor:pointer;}.loyalty-level__sentinel {width:100%;height:1px;}.loyalty-level__card--skeleton {pointer-events:none;justify-content:flex-start;height:180px;}.loyalty-level__skeleton {display:block;border-radius:4px;background:linear-gradient(
|
|
3
3
|
90deg,
|
|
4
4
|
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as at, c as Oe, p as Te, a as nt, b as y, s as ot, e as Le, u as J, f as rt, g as st, h as it, i as R, j as we, M as ne, k as e, l as k, m as me, n as S, o as p, q as Ue, I as W, r as C, t as E, v as _, w as dt, x as M, y as x, z as g, A as ke, B as Se, C as ct, L as vt, D as yt, E as U, F, G as V, H as oe, J as _t, $ as ut, K as Me, N as re, O as Ee, P as pt, Q as Ie } from "./LoyaltyPagination-
|
|
1
|
+
import { d as at, c as Oe, p as Te, a as nt, b as y, s as ot, e as Le, u as J, f as rt, g as st, h as it, i as R, j as we, M as ne, k as e, l as k, m as me, n as S, o as p, q as Ue, I as W, r as C, t as E, v as _, w as dt, x as M, y as x, z as g, A as ke, B as Se, C as ct, L as vt, D as yt, E as U, F, G as V, H as oe, J as _t, $ as ut, K as Me, N as re, O as Ee, P as pt, Q as Ie } from "./LoyaltyPagination-0kd-2vyw.js";
|
|
2
2
|
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -16,7 +16,7 @@ if (typeof window != "undefined") {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
customElements.define = B(customElements.define), import("./LoyaltyPagination-
|
|
19
|
+
customElements.define = B(customElements.define), import("./LoyaltyPagination-0kd-2vyw.js").then((a) => a.R).then((a) => {
|
|
20
20
|
const c = a.default || a;
|
|
21
21
|
customElements.get("loyalty-pagination") || customElements.define("loyalty-pagination", c.element || c);
|
|
22
22
|
}).catch((a) => {
|