@public-ui/themes 2.2.24-rc.0 → 2.2.24-rc.1

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.
@@ -4,28 +4,22 @@ export declare const BWSt: (patch: (name: string, map: {
4
4
  "KOL-SYMBOL"?: string | undefined;
5
5
  "KOL-PAGINATION"?: string | undefined;
6
6
  "KOL-ABBR"?: string | undefined;
7
- "KOL-BUTTON"?: string | undefined;
8
- "KOL-DETAILS"?: string | undefined;
9
- "KOL-FORM"?: string | undefined;
10
- "KOL-LINK"?: string | undefined;
11
- "KOL-NAV"?: string | undefined;
12
- "KOL-PROGRESS"?: string | undefined;
13
- "KOL-SELECT"?: string | undefined;
14
- "KOL-TABLE"?: string | undefined;
15
- "KOL-TEXTAREA"?: string | undefined;
16
- "KOL-IMAGE"?: string | undefined;
17
- "KOL-ICON"?: string | undefined;
18
- "KOL-ALERT"?: string | undefined;
19
- "KOL-CARD"?: string | undefined;
20
7
  "KOL-ACCORDION"?: string | undefined;
8
+ "KOL-ALERT"?: string | undefined;
21
9
  "KOL-AVATAR"?: string | undefined;
22
10
  "KOL-BADGE"?: string | undefined;
23
11
  "KOL-BREADCRUMB"?: string | undefined;
12
+ "KOL-BUTTON"?: string | undefined;
24
13
  "KOL-BUTTON-GROUP"?: string | undefined;
25
14
  "KOL-BUTTON-LINK"?: string | undefined;
15
+ "KOL-CARD"?: string | undefined;
26
16
  "KOL-COMBOBOX"?: string | undefined;
17
+ "KOL-DETAILS"?: string | undefined;
27
18
  "KOL-DRAWER"?: string | undefined;
19
+ "KOL-FORM"?: string | undefined;
28
20
  "KOL-HEADING"?: string | undefined;
21
+ "KOL-ICON"?: string | undefined;
22
+ "KOL-IMAGE"?: string | undefined;
29
23
  "KOL-INDENTED-TEXT"?: string | undefined;
30
24
  "KOL-INPUT-CHECKBOX"?: string | undefined;
31
25
  "KOL-INPUT-COLOR"?: string | undefined;
@@ -38,19 +32,25 @@ export declare const BWSt: (patch: (name: string, map: {
38
32
  "KOL-INPUT-RANGE"?: string | undefined;
39
33
  "KOL-INPUT-TEXT"?: string | undefined;
40
34
  "KOL-KOLIBRI"?: string | undefined;
35
+ "KOL-LINK"?: string | undefined;
41
36
  "KOL-LINK-BUTTON"?: string | undefined;
42
37
  "KOL-LINK-GROUP"?: string | undefined;
43
38
  "KOL-LOGO"?: string | undefined;
44
39
  "KOL-MODAL"?: string | undefined;
40
+ "KOL-NAV"?: string | undefined;
45
41
  "KOL-POPOVER-BUTTON"?: string | undefined;
42
+ "KOL-PROGRESS"?: string | undefined;
46
43
  "KOL-QUOTE"?: string | undefined;
44
+ "KOL-SELECT"?: string | undefined;
47
45
  "KOL-SINGLE-SELECT"?: string | undefined;
48
46
  "KOL-SKIP-NAV"?: string | undefined;
49
47
  "KOL-SPIN"?: string | undefined;
50
48
  "KOL-SPLIT-BUTTON"?: string | undefined;
49
+ "KOL-TABLE"?: string | undefined;
51
50
  "KOL-TABLE-STATEFUL"?: string | undefined;
52
51
  "KOL-TABLE-STATELESS"?: string | undefined;
53
52
  "KOL-TABS"?: string | undefined;
53
+ "KOL-TEXTAREA"?: string | undefined;
54
54
  "KOL-TOAST-CONTAINER"?: string | undefined;
55
55
  "KOL-TOOLBAR"?: string | undefined;
56
56
  "KOL-TOOLTIP"?: string | undefined;
@@ -58,4 +58,4 @@ export declare const BWSt: (patch: (name: string, map: {
58
58
  "KOL-TREE-ITEM"?: string | undefined;
59
59
  }, options?: {
60
60
  append?: boolean;
61
- }) => string) => string;
61
+ }, features?: Record<string, unknown>) => string) => string;
@@ -4,28 +4,22 @@ export declare const DEFAULT: (patch: (name: string, map: {
4
4
  "KOL-SYMBOL"?: string | undefined;
5
5
  "KOL-PAGINATION"?: string | undefined;
6
6
  "KOL-ABBR"?: string | undefined;
7
- "KOL-BUTTON"?: string | undefined;
8
- "KOL-DETAILS"?: string | undefined;
9
- "KOL-FORM"?: string | undefined;
10
- "KOL-LINK"?: string | undefined;
11
- "KOL-NAV"?: string | undefined;
12
- "KOL-PROGRESS"?: string | undefined;
13
- "KOL-SELECT"?: string | undefined;
14
- "KOL-TABLE"?: string | undefined;
15
- "KOL-TEXTAREA"?: string | undefined;
16
- "KOL-IMAGE"?: string | undefined;
17
- "KOL-ICON"?: string | undefined;
18
- "KOL-ALERT"?: string | undefined;
19
- "KOL-CARD"?: string | undefined;
20
7
  "KOL-ACCORDION"?: string | undefined;
8
+ "KOL-ALERT"?: string | undefined;
21
9
  "KOL-AVATAR"?: string | undefined;
22
10
  "KOL-BADGE"?: string | undefined;
23
11
  "KOL-BREADCRUMB"?: string | undefined;
12
+ "KOL-BUTTON"?: string | undefined;
24
13
  "KOL-BUTTON-GROUP"?: string | undefined;
25
14
  "KOL-BUTTON-LINK"?: string | undefined;
15
+ "KOL-CARD"?: string | undefined;
26
16
  "KOL-COMBOBOX"?: string | undefined;
17
+ "KOL-DETAILS"?: string | undefined;
27
18
  "KOL-DRAWER"?: string | undefined;
19
+ "KOL-FORM"?: string | undefined;
28
20
  "KOL-HEADING"?: string | undefined;
21
+ "KOL-ICON"?: string | undefined;
22
+ "KOL-IMAGE"?: string | undefined;
29
23
  "KOL-INDENTED-TEXT"?: string | undefined;
30
24
  "KOL-INPUT-CHECKBOX"?: string | undefined;
31
25
  "KOL-INPUT-COLOR"?: string | undefined;
@@ -38,19 +32,25 @@ export declare const DEFAULT: (patch: (name: string, map: {
38
32
  "KOL-INPUT-RANGE"?: string | undefined;
39
33
  "KOL-INPUT-TEXT"?: string | undefined;
40
34
  "KOL-KOLIBRI"?: string | undefined;
35
+ "KOL-LINK"?: string | undefined;
41
36
  "KOL-LINK-BUTTON"?: string | undefined;
42
37
  "KOL-LINK-GROUP"?: string | undefined;
43
38
  "KOL-LOGO"?: string | undefined;
44
39
  "KOL-MODAL"?: string | undefined;
40
+ "KOL-NAV"?: string | undefined;
45
41
  "KOL-POPOVER-BUTTON"?: string | undefined;
42
+ "KOL-PROGRESS"?: string | undefined;
46
43
  "KOL-QUOTE"?: string | undefined;
44
+ "KOL-SELECT"?: string | undefined;
47
45
  "KOL-SINGLE-SELECT"?: string | undefined;
48
46
  "KOL-SKIP-NAV"?: string | undefined;
49
47
  "KOL-SPIN"?: string | undefined;
50
48
  "KOL-SPLIT-BUTTON"?: string | undefined;
49
+ "KOL-TABLE"?: string | undefined;
51
50
  "KOL-TABLE-STATEFUL"?: string | undefined;
52
51
  "KOL-TABLE-STATELESS"?: string | undefined;
53
52
  "KOL-TABS"?: string | undefined;
53
+ "KOL-TEXTAREA"?: string | undefined;
54
54
  "KOL-TOAST-CONTAINER"?: string | undefined;
55
55
  "KOL-TOOLBAR"?: string | undefined;
56
56
  "KOL-TOOLTIP"?: string | undefined;
@@ -58,4 +58,4 @@ export declare const DEFAULT: (patch: (name: string, map: {
58
58
  "KOL-TREE-ITEM"?: string | undefined;
59
59
  }, options?: {
60
60
  append?: boolean;
61
- }) => string) => string;
61
+ }, features?: Record<string, unknown>) => string) => string;
@@ -4,28 +4,22 @@ export declare const ECL_EC: (patch: (name: string, map: {
4
4
  "KOL-SYMBOL"?: string | undefined;
5
5
  "KOL-PAGINATION"?: string | undefined;
6
6
  "KOL-ABBR"?: string | undefined;
7
- "KOL-BUTTON"?: string | undefined;
8
- "KOL-DETAILS"?: string | undefined;
9
- "KOL-FORM"?: string | undefined;
10
- "KOL-LINK"?: string | undefined;
11
- "KOL-NAV"?: string | undefined;
12
- "KOL-PROGRESS"?: string | undefined;
13
- "KOL-SELECT"?: string | undefined;
14
- "KOL-TABLE"?: string | undefined;
15
- "KOL-TEXTAREA"?: string | undefined;
16
- "KOL-IMAGE"?: string | undefined;
17
- "KOL-ICON"?: string | undefined;
18
- "KOL-ALERT"?: string | undefined;
19
- "KOL-CARD"?: string | undefined;
20
7
  "KOL-ACCORDION"?: string | undefined;
8
+ "KOL-ALERT"?: string | undefined;
21
9
  "KOL-AVATAR"?: string | undefined;
22
10
  "KOL-BADGE"?: string | undefined;
23
11
  "KOL-BREADCRUMB"?: string | undefined;
12
+ "KOL-BUTTON"?: string | undefined;
24
13
  "KOL-BUTTON-GROUP"?: string | undefined;
25
14
  "KOL-BUTTON-LINK"?: string | undefined;
15
+ "KOL-CARD"?: string | undefined;
26
16
  "KOL-COMBOBOX"?: string | undefined;
17
+ "KOL-DETAILS"?: string | undefined;
27
18
  "KOL-DRAWER"?: string | undefined;
19
+ "KOL-FORM"?: string | undefined;
28
20
  "KOL-HEADING"?: string | undefined;
21
+ "KOL-ICON"?: string | undefined;
22
+ "KOL-IMAGE"?: string | undefined;
29
23
  "KOL-INDENTED-TEXT"?: string | undefined;
30
24
  "KOL-INPUT-CHECKBOX"?: string | undefined;
31
25
  "KOL-INPUT-COLOR"?: string | undefined;
@@ -38,19 +32,25 @@ export declare const ECL_EC: (patch: (name: string, map: {
38
32
  "KOL-INPUT-RANGE"?: string | undefined;
39
33
  "KOL-INPUT-TEXT"?: string | undefined;
40
34
  "KOL-KOLIBRI"?: string | undefined;
35
+ "KOL-LINK"?: string | undefined;
41
36
  "KOL-LINK-BUTTON"?: string | undefined;
42
37
  "KOL-LINK-GROUP"?: string | undefined;
43
38
  "KOL-LOGO"?: string | undefined;
44
39
  "KOL-MODAL"?: string | undefined;
40
+ "KOL-NAV"?: string | undefined;
45
41
  "KOL-POPOVER-BUTTON"?: string | undefined;
42
+ "KOL-PROGRESS"?: string | undefined;
46
43
  "KOL-QUOTE"?: string | undefined;
44
+ "KOL-SELECT"?: string | undefined;
47
45
  "KOL-SINGLE-SELECT"?: string | undefined;
48
46
  "KOL-SKIP-NAV"?: string | undefined;
49
47
  "KOL-SPIN"?: string | undefined;
50
48
  "KOL-SPLIT-BUTTON"?: string | undefined;
49
+ "KOL-TABLE"?: string | undefined;
51
50
  "KOL-TABLE-STATEFUL"?: string | undefined;
52
51
  "KOL-TABLE-STATELESS"?: string | undefined;
53
52
  "KOL-TABS"?: string | undefined;
53
+ "KOL-TEXTAREA"?: string | undefined;
54
54
  "KOL-TOAST-CONTAINER"?: string | undefined;
55
55
  "KOL-TOOLBAR"?: string | undefined;
56
56
  "KOL-TOOLTIP"?: string | undefined;
@@ -58,4 +58,4 @@ export declare const ECL_EC: (patch: (name: string, map: {
58
58
  "KOL-TREE-ITEM"?: string | undefined;
59
59
  }, options?: {
60
60
  append?: boolean;
61
- }) => string) => string;
61
+ }, features?: Record<string, unknown>) => string) => string;
@@ -4,28 +4,22 @@ export declare const ECL_EU: (patch: (name: string, map: {
4
4
  "KOL-SYMBOL"?: string | undefined;
5
5
  "KOL-PAGINATION"?: string | undefined;
6
6
  "KOL-ABBR"?: string | undefined;
7
- "KOL-BUTTON"?: string | undefined;
8
- "KOL-DETAILS"?: string | undefined;
9
- "KOL-FORM"?: string | undefined;
10
- "KOL-LINK"?: string | undefined;
11
- "KOL-NAV"?: string | undefined;
12
- "KOL-PROGRESS"?: string | undefined;
13
- "KOL-SELECT"?: string | undefined;
14
- "KOL-TABLE"?: string | undefined;
15
- "KOL-TEXTAREA"?: string | undefined;
16
- "KOL-IMAGE"?: string | undefined;
17
- "KOL-ICON"?: string | undefined;
18
- "KOL-ALERT"?: string | undefined;
19
- "KOL-CARD"?: string | undefined;
20
7
  "KOL-ACCORDION"?: string | undefined;
8
+ "KOL-ALERT"?: string | undefined;
21
9
  "KOL-AVATAR"?: string | undefined;
22
10
  "KOL-BADGE"?: string | undefined;
23
11
  "KOL-BREADCRUMB"?: string | undefined;
12
+ "KOL-BUTTON"?: string | undefined;
24
13
  "KOL-BUTTON-GROUP"?: string | undefined;
25
14
  "KOL-BUTTON-LINK"?: string | undefined;
15
+ "KOL-CARD"?: string | undefined;
26
16
  "KOL-COMBOBOX"?: string | undefined;
17
+ "KOL-DETAILS"?: string | undefined;
27
18
  "KOL-DRAWER"?: string | undefined;
19
+ "KOL-FORM"?: string | undefined;
28
20
  "KOL-HEADING"?: string | undefined;
21
+ "KOL-ICON"?: string | undefined;
22
+ "KOL-IMAGE"?: string | undefined;
29
23
  "KOL-INDENTED-TEXT"?: string | undefined;
30
24
  "KOL-INPUT-CHECKBOX"?: string | undefined;
31
25
  "KOL-INPUT-COLOR"?: string | undefined;
@@ -38,19 +32,25 @@ export declare const ECL_EU: (patch: (name: string, map: {
38
32
  "KOL-INPUT-RANGE"?: string | undefined;
39
33
  "KOL-INPUT-TEXT"?: string | undefined;
40
34
  "KOL-KOLIBRI"?: string | undefined;
35
+ "KOL-LINK"?: string | undefined;
41
36
  "KOL-LINK-BUTTON"?: string | undefined;
42
37
  "KOL-LINK-GROUP"?: string | undefined;
43
38
  "KOL-LOGO"?: string | undefined;
44
39
  "KOL-MODAL"?: string | undefined;
40
+ "KOL-NAV"?: string | undefined;
45
41
  "KOL-POPOVER-BUTTON"?: string | undefined;
42
+ "KOL-PROGRESS"?: string | undefined;
46
43
  "KOL-QUOTE"?: string | undefined;
44
+ "KOL-SELECT"?: string | undefined;
47
45
  "KOL-SINGLE-SELECT"?: string | undefined;
48
46
  "KOL-SKIP-NAV"?: string | undefined;
49
47
  "KOL-SPIN"?: string | undefined;
50
48
  "KOL-SPLIT-BUTTON"?: string | undefined;
49
+ "KOL-TABLE"?: string | undefined;
51
50
  "KOL-TABLE-STATEFUL"?: string | undefined;
52
51
  "KOL-TABLE-STATELESS"?: string | undefined;
53
52
  "KOL-TABS"?: string | undefined;
53
+ "KOL-TEXTAREA"?: string | undefined;
54
54
  "KOL-TOAST-CONTAINER"?: string | undefined;
55
55
  "KOL-TOOLBAR"?: string | undefined;
56
56
  "KOL-TOOLTIP"?: string | undefined;
@@ -58,4 +58,4 @@ export declare const ECL_EU: (patch: (name: string, map: {
58
58
  "KOL-TREE-ITEM"?: string | undefined;
59
59
  }, options?: {
60
60
  append?: boolean;
61
- }) => string) => string;
61
+ }, features?: Record<string, unknown>) => string) => string;
package/dist/index.cjs CHANGED
@@ -364,94 +364,94 @@ var loglevel = {exports: {}};
364
364
  }));
365
365
  }(loglevel));
366
366
 
367
- const j=(t,e)=>s=>s(t,e),F=(t,e)=>s=>s(t,e,{append:false}),Y=()=>{const t=typeof process<"u"&&process.env?process.env:{},e=t.NODE_ENV==="test",s="VITEST"in t,a="JEST_WORKER_ID"in t,o="PLAYWRIGHT_TEST_BASE_URL"in t,r=t.CI==="true",i=t.TEST==="true"||t.IS_TEST==="true",c=typeof navigator<"u"&&navigator.webdriver===true,u=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return e||s||a||o||r||i||c||u},n$1={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:Y(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const t={};for(const[s,a]of n$1.A11yUi.PERFORMANCE_MEASURES.entries())t[s]=[a.totalTime/a.count,a.count];const e=Object.entries(t).sort((s,a)=>a[1][0]-s[1][0]);return console.table(Object.fromEntries(e.map(([s,[a,o]])=>[s,{"avg (ms)":parseFloat(a.toFixed(2)),count:o}]))),t}}};const v=new Set,N=new Map,ee=/--[^;]+/g,te=/:/,se=typeof MutationObserver<"u";let R=()=>{Math.min(25+Math.log2(n$1.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250);};const ae=(t,e)=>{let s=e.match(ee);if(Array.isArray(s)){s=s.filter(o=>te.test(o));const a=document.createElement("style");a.innerHTML=`.${t} {${s.join(";")}}`,document.querySelector("head")?.appendChild(a);}v.add(t);},y=(t,e)=>{const s=n$1.A11yUi.THEMES.get(t);if(s instanceof Map){const a=s.get(e);if(a!==void 0)return a}return ""},oe=t=>{const e=t.firstChild;if(!(!(e instanceof HTMLStyleElement)||e.dataset.themingFallback!==void 0))for(const s of Array.from(t.childNodes))if(s instanceof HTMLStyleElement&&s.tagName==="STYLE"&&s.dataset.themingFallback===void 0)t.removeChild(s);else break},ne=(t,e)=>{try{if(n$1.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const s=e.filter(a=>typeof a=="string"&&a.length>0).map(a=>{let o=N.get(a);return o||(o=new CSSStyleSheet,o.replaceSync(a),N.set(a,o)),o});t.adoptedStyleSheets=s;}catch{for(let a=e.length-1;a>=0;a--){const o=e[a];if(typeof o!="string"||o.length===0)continue;const r=e.length-1-a,i=document.createElement("style");switch(i.dataset.themingFallback="",r){case 4:i.dataset.themingBaseA11y="";break;case 3:i.dataset.themingBaseGlobal="";break;case 2:i.dataset.themingBaseComponent="";break;case 1:i.dataset.themingCustomGlobal="";break;case 0:i.dataset.themingCustomComponent="";break;default:i.dataset.themingUnknown="";break}i.innerHTML=o,t.insertBefore(i,t.firstChild);}}},re=(t,e,s)=>{if(s===false||s?.mode!=="before"&&s?.mode!=="after")return;const a=Array.from(t.childNodes).filter(r=>r instanceof HTMLStyleElement&&r.tagName==="STYLE");let o;try{o=Array.from(t.adoptedStyleSheets);}catch{o=[];}if(!(a.length===0&&o.length===0))if(s.mode==="before"){const r=[...o.map(i=>Array.from(i.cssRules).map(c=>c.cssText).join("")),...a.map(i=>i.innerHTML)];e.unshift(...r);}else a.forEach(r=>e.push(r.innerHTML)),o.forEach(r=>e.push(Array.from(r.cssRules).map(i=>i.cssText).join("")));},ie=(t,e,s)=>{const a=e.name||"default";let o;try{if(t.shadowRoot===null)throw new Error("ShadowRoot is null");o=t.shadowRoot;}catch{o=t;}const r=n$1.A11yUi.CSS_STYLE_CACHE.get(a)?.get(t.tagName);if(r)_(t,o,r,s);else {const i=y(a,"PROPERTIES"),c=y(a,"GLOBAL"),u=y(a,t.tagName);v.has(a)===false&&ae(a,c);const p=[i,c,u];if(re(o,p,e.encroachCss),e.cache===true){let m=n$1.A11yUi.CSS_STYLE_CACHE.get(a);m||(m=new Map,n$1.A11yUi.CSS_STYLE_CACHE.set(a,m)),m.set(t.tagName,p);}_(t,o,p,s);}},_=(t,e,s,a)=>{const o=n$1.A11yUi.Theme?.loglevel==="debug",r=o?performance.now():0;if(oe(e),ne(e,s),fe(t),requestAnimationFrame(a),o){const i=performance.now()-r,c=n$1.A11yUi.PERFORMANCE_MEASURES.get(t.tagName);c?(c.count+=1,c.totalTime+=i):n$1.A11yUi.PERFORMANCE_MEASURES.set(t.tagName,{count:1,totalTime:i});}},O=t=>{const e=n$1.A11yUi.STYLING_TASK_QUEUE.get(t);if(e){const{resetCss:s,themeDetails:a}=e;ie(t,a,s);}};const me={attributes:true,attributeFilter:[],childList:false,subtree:false},I=se?new MutationObserver((t,e)=>{const s=[];for(const a of t){const o=a.target;o.classList.contains("hydrated")&&n$1.A11yUi.STYLING_TASK_QUEUE.has(o)&&(O(o),s.push(o));}for(const a of s)e.observe(a,me);}):null;I&&(R=()=>{});const fe=t=>{n$1.A11yUi.STYLING_TASK_QUEUE.delete(t),R();};class ye{Prefix;Key;Tag;createTheme=(e,s)=>F(e,s);createTranslation=(e,s)=>j(e,s);constructor(e,s,a){this.Prefix=e,this.Key=Object.getOwnPropertyNames(s),this.Tag=Object.getOwnPropertyNames(a);}}
367
+ const k=(e,t)=>s=>s(e,t),G=(e,t,s)=>o=>o(e,t,{append:false},s),x=()=>{const e=typeof process<"u"&&process.env?process.env:{},t=e.NODE_ENV==="test",s="VITEST"in e,o="JEST_WORKER_ID"in e,a="PLAYWRIGHT_TEST_BASE_URL"in e,r=e.CI==="true",i=e.TEST==="true"||e.IS_TEST==="true",c=typeof navigator<"u"&&navigator.webdriver===true,m=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||s||o||a||r||i||c||m},n$1={A11yUi:{CSS_STYLE_CACHE:new Map,FEATURES:{},IS_TEST_ENVIRONMENT:x(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,THEME_FEATURES:{},showAverageTimes:()=>{const e={};for(const[s,o]of n$1.A11yUi.PERFORMANCE_MEASURES.entries())e[s]=[o.totalTime/o.count,o.count];const t=Object.entries(e).sort((s,o)=>o[1][0]-s[1][0]);return console.table(Object.fromEntries(t.map(([s,[o,a]])=>[s,{"avg (ms)":parseFloat(o.toFixed(2)),count:a}]))),e}}};const _=new Set,L=new Map,oe=/--[^;]+/g,ae=/:/,ne=typeof MutationObserver<"u";let H=()=>{Math.min(25+Math.log2(n$1.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250);};const re=(e,t)=>{let s=t.match(oe);if(Array.isArray(s)){s=s.filter(a=>ae.test(a));const o=document.createElement("style");o.innerHTML=`.${e} {${s.join(";")}}`,document.querySelector("head")?.appendChild(o);}_.add(e);},T=(e,t)=>{const s=n$1.A11yUi.THEMES.get(e);if(s instanceof Map){const o=s.get(t);if(o!==void 0)return o}return ""},ie=e=>{const t=e.firstChild;if(!(!(t instanceof HTMLStyleElement)||t.dataset.themingFallback!==void 0))for(const s of Array.from(e.childNodes))if(s instanceof HTMLStyleElement&&s.tagName==="STYLE"&&s.dataset.themingFallback===void 0)e.removeChild(s);else break},ce=(e,t)=>{try{if(n$1.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const s=t.filter(o=>typeof o=="string"&&o.length>0).map(o=>{let a=L.get(o);return a||(a=new CSSStyleSheet,a.replaceSync(o),L.set(o,a)),a});e.adoptedStyleSheets=s;}catch{for(let o=t.length-1;o>=0;o--){const a=t[o];if(typeof a!="string"||a.length===0)continue;const r=t.length-1-o,i=document.createElement("style");switch(i.dataset.themingFallback="",r){case 4:i.dataset.themingBaseA11y="";break;case 3:i.dataset.themingBaseGlobal="";break;case 2:i.dataset.themingBaseComponent="";break;case 1:i.dataset.themingCustomGlobal="";break;case 0:i.dataset.themingCustomComponent="";break;default:i.dataset.themingUnknown="";break}i.innerHTML=a,e.insertBefore(i,e.firstChild);}}},le=(e,t,s)=>{if(s===false||s?.mode!=="before"&&s?.mode!=="after")return;const o=Array.from(e.childNodes).filter(r=>r instanceof HTMLStyleElement&&r.tagName==="STYLE");let a;try{a=Array.from(e.adoptedStyleSheets);}catch{a=[];}if(!(o.length===0&&a.length===0))if(s.mode==="before"){const r=[...a.map(i=>Array.from(i.cssRules).map(c=>c.cssText).join("")),...o.map(i=>i.innerHTML)];t.unshift(...r);}else o.forEach(r=>t.push(r.innerHTML)),a.forEach(r=>t.push(Array.from(r.cssRules).map(i=>i.cssText).join("")));},me=(e,t,s)=>{const o=t.name||"default";let a;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");a=e.shadowRoot;}catch{a=e;}const r=n$1.A11yUi.CSS_STYLE_CACHE.get(o)?.get(e.tagName);if(r)O(e,a,r,s);else {const i=T(o,"PROPERTIES"),c=T(o,"GLOBAL"),m=T(o,e.tagName);_.has(o)===false&&re(o,c);const d=[i,c,m];if(le(a,d,t.encroachCss),t.cache===true){let h=n$1.A11yUi.CSS_STYLE_CACHE.get(o);h||(h=new Map,n$1.A11yUi.CSS_STYLE_CACHE.set(o,h)),h.set(e.tagName,d);}O(e,a,d,s);}},O=(e,t,s,o)=>{const a=n$1.A11yUi.Theme?.loglevel==="debug",r=a?performance.now():0;if(ie(t),ce(t,s),Te(e),requestAnimationFrame(o),a){const i=performance.now()-r,c=n$1.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);c?(c.count+=1,c.totalTime+=i):n$1.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:i});}},I=e=>{const t=n$1.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:s,themeDetails:o}=t;me(e,o,s);}};const ue={attributes:true,attributeFilter:[],childList:false,subtree:false},P=ne?new MutationObserver((e,t)=>{const s=[];for(const o of e){const a=o.target;a.classList.contains("hydrated")&&n$1.A11yUi.STYLING_TASK_QUEUE.has(a)&&(I(a),s.push(a));}for(const o of s)t.observe(o,ue);}):null;P&&(H=()=>{});const Te=e=>{n$1.A11yUi.STYLING_TASK_QUEUE.delete(e),H();};class Ee{Prefix;Key;Tag;createTheme=(t,s,o)=>G(t,s,o);createTranslation=(t,s)=>k(t,s);constructor(t,s,o){this.Prefix=t,this.Key=Object.getOwnPropertyNames(s),this.Tag=Object.getOwnPropertyNames(o);}}
368
368
 
369
369
  var KeyEnum;
370
370
  (function (KeyEnum) {
371
- KeyEnum[KeyEnum["error"] = 0] = "error";
372
- KeyEnum[KeyEnum["warning"] = 1] = "warning";
373
- KeyEnum[KeyEnum["info"] = 2] = "info";
374
- KeyEnum[KeyEnum["success"] = 3] = "success";
375
- KeyEnum[KeyEnum["message"] = 4] = "message";
376
- KeyEnum[KeyEnum["close"] = 5] = "close";
377
- KeyEnum[KeyEnum["form-description"] = 6] = "form-description";
378
- KeyEnum[KeyEnum["of"] = 7] = "of";
379
- KeyEnum[KeyEnum["characters"] = 8] = "characters";
380
- KeyEnum[KeyEnum["new"] = 9] = "new";
381
- KeyEnum[KeyEnum["no-entries"] = 10] = "no-entries";
382
- KeyEnum[KeyEnum["change-order"] = 11] = "change-order";
383
- KeyEnum[KeyEnum["action-running"] = 12] = "action-running";
384
- KeyEnum[KeyEnum["action-done"] = 13] = "action-done";
385
- KeyEnum[KeyEnum["page-first"] = 14] = "page-first";
386
- KeyEnum[KeyEnum["page-back"] = 15] = "page-back";
387
- KeyEnum[KeyEnum["page-next"] = 16] = "page-next";
388
- KeyEnum[KeyEnum["page-last"] = 17] = "page-last";
389
- KeyEnum[KeyEnum["entries-per-site"] = 18] = "entries-per-site";
390
- KeyEnum[KeyEnum["page-current"] = 19] = "page-current";
391
- KeyEnum[KeyEnum["page-selected"] = 20] = "page-selected";
392
- KeyEnum[KeyEnum["page-per-site"] = 21] = "page-per-site";
393
- KeyEnum[KeyEnum["logo-description"] = 22] = "logo-description";
394
- KeyEnum[KeyEnum["open-link-in-tab"] = 23] = "open-link-in-tab";
395
- KeyEnum[KeyEnum["kolibri-logo"] = 24] = "kolibri-logo";
371
+ KeyEnum["error"] = "error";
372
+ KeyEnum["warning"] = "warning";
373
+ KeyEnum["info"] = "info";
374
+ KeyEnum["success"] = "success";
375
+ KeyEnum["message"] = "message";
376
+ KeyEnum["close"] = "close";
377
+ KeyEnum["form-description"] = "form-description";
378
+ KeyEnum["of"] = "of";
379
+ KeyEnum["characters"] = "characters";
380
+ KeyEnum["new"] = "new";
381
+ KeyEnum["no-entries"] = "no-entries";
382
+ KeyEnum["change-order"] = "change-order";
383
+ KeyEnum["action-running"] = "action-running";
384
+ KeyEnum["action-done"] = "action-done";
385
+ KeyEnum["page-first"] = "page-first";
386
+ KeyEnum["page-back"] = "page-back";
387
+ KeyEnum["page-next"] = "page-next";
388
+ KeyEnum["page-last"] = "page-last";
389
+ KeyEnum["entries-per-site"] = "entries-per-site";
390
+ KeyEnum["page-current"] = "page-current";
391
+ KeyEnum["page-selected"] = "page-selected";
392
+ KeyEnum["page-per-site"] = "page-per-site";
393
+ KeyEnum["logo-description"] = "logo-description";
394
+ KeyEnum["open-link-in-tab"] = "open-link-in-tab";
395
+ KeyEnum["kolibri-logo"] = "kolibri-logo";
396
396
  })(KeyEnum || (KeyEnum = {}));
397
397
 
398
398
  var TagEnum;
399
399
  (function (TagEnum) {
400
- TagEnum[TagEnum["abbr"] = 0] = "abbr";
401
- TagEnum[TagEnum["accordion"] = 1] = "accordion";
402
- TagEnum[TagEnum["alert"] = 2] = "alert";
403
- TagEnum[TagEnum["avatar"] = 3] = "avatar";
404
- TagEnum[TagEnum["badge"] = 4] = "badge";
405
- TagEnum[TagEnum["breadcrumb"] = 5] = "breadcrumb";
406
- TagEnum[TagEnum["button"] = 6] = "button";
407
- TagEnum[TagEnum["button-group"] = 7] = "button-group";
408
- TagEnum[TagEnum["button-link"] = 8] = "button-link";
409
- TagEnum[TagEnum["card"] = 9] = "card";
410
- TagEnum[TagEnum["combobox"] = 10] = "combobox";
411
- TagEnum[TagEnum["details"] = 11] = "details";
412
- TagEnum[TagEnum["drawer"] = 12] = "drawer";
413
- TagEnum[TagEnum["form"] = 13] = "form";
414
- TagEnum[TagEnum["heading"] = 14] = "heading";
415
- TagEnum[TagEnum["icon"] = 15] = "icon";
416
- TagEnum[TagEnum["image"] = 16] = "image";
417
- TagEnum[TagEnum["indented-text"] = 17] = "indented-text";
418
- TagEnum[TagEnum["input-checkbox"] = 18] = "input-checkbox";
419
- TagEnum[TagEnum["input-color"] = 19] = "input-color";
420
- TagEnum[TagEnum["input-date"] = 20] = "input-date";
421
- TagEnum[TagEnum["input-email"] = 21] = "input-email";
422
- TagEnum[TagEnum["input-file"] = 22] = "input-file";
423
- TagEnum[TagEnum["input-number"] = 23] = "input-number";
424
- TagEnum[TagEnum["input-password"] = 24] = "input-password";
425
- TagEnum[TagEnum["input-radio"] = 25] = "input-radio";
426
- TagEnum[TagEnum["input-range"] = 26] = "input-range";
427
- TagEnum[TagEnum["input-text"] = 27] = "input-text";
428
- TagEnum[TagEnum["kolibri"] = 28] = "kolibri";
429
- TagEnum[TagEnum["link"] = 29] = "link";
430
- TagEnum[TagEnum["link-button"] = 30] = "link-button";
431
- TagEnum[TagEnum["link-group"] = 31] = "link-group";
432
- TagEnum[TagEnum["logo"] = 32] = "logo";
433
- TagEnum[TagEnum["modal"] = 33] = "modal";
434
- TagEnum[TagEnum["nav"] = 34] = "nav";
435
- TagEnum[TagEnum["pagination"] = 35] = "pagination";
436
- TagEnum[TagEnum["popover-button"] = 36] = "popover-button";
437
- TagEnum[TagEnum["progress"] = 37] = "progress";
438
- TagEnum[TagEnum["quote"] = 38] = "quote";
439
- TagEnum[TagEnum["select"] = 39] = "select";
440
- TagEnum[TagEnum["single-select"] = 40] = "single-select";
441
- TagEnum[TagEnum["skip-nav"] = 41] = "skip-nav";
442
- TagEnum[TagEnum["spin"] = 42] = "spin";
443
- TagEnum[TagEnum["split-button"] = 43] = "split-button";
444
- TagEnum[TagEnum["symbol"] = 44] = "symbol";
445
- TagEnum[TagEnum["table"] = 45] = "table";
446
- TagEnum[TagEnum["table-stateful"] = 46] = "table-stateful";
447
- TagEnum[TagEnum["table-stateless"] = 47] = "table-stateless";
448
- TagEnum[TagEnum["tabs"] = 48] = "tabs";
449
- TagEnum[TagEnum["textarea"] = 49] = "textarea";
450
- TagEnum[TagEnum["toast-container"] = 50] = "toast-container";
451
- TagEnum[TagEnum["toolbar"] = 51] = "toolbar";
452
- TagEnum[TagEnum["tooltip"] = 52] = "tooltip";
453
- TagEnum[TagEnum["tree"] = 53] = "tree";
454
- TagEnum[TagEnum["tree-item"] = 54] = "tree-item";
400
+ TagEnum["abbr"] = "abbr";
401
+ TagEnum["accordion"] = "accordion";
402
+ TagEnum["alert"] = "alert";
403
+ TagEnum["avatar"] = "avatar";
404
+ TagEnum["badge"] = "badge";
405
+ TagEnum["breadcrumb"] = "breadcrumb";
406
+ TagEnum["button"] = "button";
407
+ TagEnum["button-group"] = "button-group";
408
+ TagEnum["button-link"] = "button-link";
409
+ TagEnum["card"] = "card";
410
+ TagEnum["combobox"] = "combobox";
411
+ TagEnum["details"] = "details";
412
+ TagEnum["drawer"] = "drawer";
413
+ TagEnum["form"] = "form";
414
+ TagEnum["heading"] = "heading";
415
+ TagEnum["icon"] = "icon";
416
+ TagEnum["image"] = "image";
417
+ TagEnum["indented-text"] = "indented-text";
418
+ TagEnum["input-checkbox"] = "input-checkbox";
419
+ TagEnum["input-color"] = "input-color";
420
+ TagEnum["input-date"] = "input-date";
421
+ TagEnum["input-email"] = "input-email";
422
+ TagEnum["input-file"] = "input-file";
423
+ TagEnum["input-number"] = "input-number";
424
+ TagEnum["input-password"] = "input-password";
425
+ TagEnum["input-radio"] = "input-radio";
426
+ TagEnum["input-range"] = "input-range";
427
+ TagEnum["input-text"] = "input-text";
428
+ TagEnum["kolibri"] = "kolibri";
429
+ TagEnum["link"] = "link";
430
+ TagEnum["link-button"] = "link-button";
431
+ TagEnum["link-group"] = "link-group";
432
+ TagEnum["logo"] = "logo";
433
+ TagEnum["modal"] = "modal";
434
+ TagEnum["nav"] = "nav";
435
+ TagEnum["pagination"] = "pagination";
436
+ TagEnum["popover-button"] = "popover-button";
437
+ TagEnum["progress"] = "progress";
438
+ TagEnum["quote"] = "quote";
439
+ TagEnum["select"] = "select";
440
+ TagEnum["single-select"] = "single-select";
441
+ TagEnum["skip-nav"] = "skip-nav";
442
+ TagEnum["spin"] = "spin";
443
+ TagEnum["split-button"] = "split-button";
444
+ TagEnum["symbol"] = "symbol";
445
+ TagEnum["table"] = "table";
446
+ TagEnum["table-stateful"] = "table-stateful";
447
+ TagEnum["table-stateless"] = "table-stateless";
448
+ TagEnum["tabs"] = "tabs";
449
+ TagEnum["textarea"] = "textarea";
450
+ TagEnum["toast-container"] = "toast-container";
451
+ TagEnum["toolbar"] = "toolbar";
452
+ TagEnum["tooltip"] = "tooltip";
453
+ TagEnum["tree"] = "tree";
454
+ TagEnum["tree-item"] = "tree-item";
455
455
  })(TagEnum || (TagEnum = {}));
456
456
  let DEV_MODE = false;
457
457
  const getDevMode = () => DEV_MODE === true;
@@ -763,7 +763,7 @@ var KoliBriProgressVariantEnum;
763
763
  KoliBriProgressVariantEnum["cycle"] = "cycle";
764
764
  })(KoliBriProgressVariantEnum || (KoliBriProgressVariantEnum = {}));
765
765
 
766
- const KoliBri = new ye('kol', KeyEnum, TagEnum);
766
+ const KoliBri = new Ee('kol', KeyEnum, TagEnum);
767
767
 
768
768
  /*!
769
769
  * KoliBri - The accessible HTML-Standard