@public-ui/theme-default 4.0.3 → 4.1.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/kolicons/kolicons.eot +0 -0
- package/assets/kolicons/kolicons.ttf +0 -0
- package/assets/kolicons/kolicons.woff +0 -0
- package/assets/kolicons/kolicons.woff2 +0 -0
- package/assets/kolicons/style.css +6 -6
- package/dist/index.cjs +4 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -96
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "kolicons";
|
|
3
|
-
src: url('kolicons.eot?t=
|
|
4
|
-
src: url('kolicons.eot?t=
|
|
5
|
-
url("kolicons.woff2?t=
|
|
6
|
-
url("kolicons.woff?t=
|
|
7
|
-
url('kolicons.ttf?t=
|
|
8
|
-
url('kolicons.svg?t=
|
|
3
|
+
src: url('kolicons.eot?t=1772024234377'); /* IE9*/
|
|
4
|
+
src: url('kolicons.eot?t=1772024234377#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
5
|
+
url("kolicons.woff2?t=1772024234377") format("woff2"),
|
|
6
|
+
url("kolicons.woff?t=1772024234377") format("woff"),
|
|
7
|
+
url('kolicons.ttf?t=1772024234377') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
|
8
|
+
url('kolicons.svg?t=1772024234377#kolicons') format('svg'); /* iOS 4.1- */
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
[class^="kolicon-"], [class*=" kolicon-"] {
|
package/dist/index.cjs
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
/*!
|
|
4
4
|
* KoliBri - The accessible HTML-Standard
|
|
5
5
|
*/
|
|
6
|
-
function getDefaultExportFromCjs (x) {
|
|
7
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
8
|
-
}
|
|
9
6
|
|
|
10
7
|
var loglevel$1 = {exports: {}};
|
|
11
8
|
|
|
@@ -376,7 +373,7 @@ function requireLoglevel () {
|
|
|
376
373
|
|
|
377
374
|
requireLoglevel();
|
|
378
375
|
|
|
379
|
-
const
|
|
376
|
+
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,o="JEST_WORKER_ID"in t,a="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,y=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return e||s||o||a||r||i||c||y},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,o]of n$1.A11yUi.PERFORMANCE_MEASURES.entries())t[s]=[o.totalTime/o.count,o.count];const e=Object.entries(t).sort((s,o)=>o[1][0]-s[1][0]);return console.table(Object.fromEntries(e.map(([s,[o,a]])=>[s,{"avg (ms)":parseFloat(o.toFixed(2)),count:a}]))),t}}};const v=new Set,N=new Map,X=/--[^;]+/g,Z=/:/,ee=typeof MutationObserver<"u";let R=()=>{Math.min(25+Math.log2(n$1.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250);};const te=(t,e)=>{let s=e.match(X);if(Array.isArray(s)){s=s.filter(a=>Z.test(a));const o=document.createElement("style");o.innerHTML=`.${t} {${s.join(";")}}`,document.querySelector("head")?.appendChild(o);}v.add(t);},d=(t,e)=>{const s=n$1.A11yUi.THEMES.get(t);if(s instanceof Map){const o=s.get(e);if(o!==void 0)return o}return ""},se=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},oe=(t,e)=>{try{if(n$1.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const s=e.filter(o=>typeof o=="string"&&o.length>0).map(o=>{let a=N.get(o);return a||(a=new CSSStyleSheet,a.replaceSync(o),N.set(o,a)),a});t.adoptedStyleSheets=s;}catch{for(let o=e.length-1;o>=0;o--){const a=e[o];if(typeof a!="string"||a.length===0)continue;const r=e.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,t.insertBefore(i,t.firstChild);}}},ae=(t,e,s)=>{if(s===false||s?.mode!=="before"&&s?.mode!=="after")return;const o=Array.from(t.childNodes).filter(r=>r instanceof HTMLStyleElement&&r.tagName==="STYLE");let a;try{a=Array.from(t.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)];e.unshift(...r);}else o.forEach(r=>e.push(r.innerHTML)),a.forEach(r=>e.push(Array.from(r.cssRules).map(i=>i.cssText).join("")));},ne=(t,e,s)=>{const o=e.name||"default";let a;try{if(t.shadowRoot===null)throw new Error("ShadowRoot is null");a=t.shadowRoot;}catch{a=t;}const r=n$1.A11yUi.CSS_STYLE_CACHE.get(o)?.get(t.tagName);if(r)_(t,a,r,s);else {const i=d(o,"PROPERTIES"),c=d(o,"GLOBAL"),y=d(o,t.tagName);v.has(o)===false&&te(o,c);const u=[i,c,y];if(ae(a,u,e.encroachCss),e.cache===true){let m=n$1.A11yUi.CSS_STYLE_CACHE.get(o);m||(m=new Map,n$1.A11yUi.CSS_STYLE_CACHE.set(o,m)),m.set(t.tagName,u);}_(t,a,u,s);}},_=(t,e,s,o)=>{const a=n$1.A11yUi.Theme?.loglevel==="debug",r=a?performance.now():0;if(se(e),oe(e,s),me(t),requestAnimationFrame(o),a){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:o}=e;ne(t,o,s);}};const ce={attributes:true,attributeFilter:[],childList:false,subtree:false},I=ee?new MutationObserver((t,e)=>{const s=[];for(const o of t){const a=o.target;a.classList.contains("hydrated")&&n$1.A11yUi.STYLING_TASK_QUEUE.has(a)&&(O(a),s.push(a));}for(const o of s)e.observe(o,ce);}):null;I&&(R=()=>{});const me=t=>{n$1.A11yUi.STYLING_TASK_QUEUE.delete(t),R();};class fe{Prefix;Key;Tag;createTheme=(e,s)=>F(e,s);createTranslation=(e,s)=>j(e,s);constructor(e,s,o){this.Prefix=e,this.Key=Object.getOwnPropertyNames(s),this.Tag=Object.getOwnPropertyNames(o);}}
|
|
380
377
|
|
|
381
378
|
var KeyEnum;
|
|
382
379
|
(function (KeyEnum) {
|
|
@@ -474,7 +471,7 @@ const setRuntimeMode = (mode) => {
|
|
|
474
471
|
throw new Error(`Invalid NODE_ENV value: ${mode}. Expected one of ${MODES.join(', ')}.`);
|
|
475
472
|
}
|
|
476
473
|
}
|
|
477
|
-
catch (
|
|
474
|
+
catch (_a) {
|
|
478
475
|
runtimeMode = 'production';
|
|
479
476
|
}
|
|
480
477
|
};
|
|
@@ -485,7 +482,7 @@ const getInitialMode = () => {
|
|
|
485
482
|
return nodeEnv;
|
|
486
483
|
}
|
|
487
484
|
}
|
|
488
|
-
catch (
|
|
485
|
+
catch (_a) {
|
|
489
486
|
}
|
|
490
487
|
return 'production';
|
|
491
488
|
};
|
|
@@ -793,95 +790,6 @@ function requireRgbaConvert () {
|
|
|
793
790
|
requireRgbaConvert();
|
|
794
791
|
new Event('StateChange');
|
|
795
792
|
|
|
796
|
-
/*!
|
|
797
|
-
* KoliBri - The accessible HTML-Standard
|
|
798
|
-
*/
|
|
799
|
-
|
|
800
|
-
var easyBem;
|
|
801
|
-
var hasRequiredEasyBem;
|
|
802
|
-
|
|
803
|
-
function requireEasyBem () {
|
|
804
|
-
if (hasRequiredEasyBem) return easyBem;
|
|
805
|
-
hasRequiredEasyBem = 1;
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* BEM class name factory.
|
|
809
|
-
*
|
|
810
|
-
* @typedef {Function} Bem
|
|
811
|
-
* @param {String|Object} [elementOrMods] Element name or hash object with mods
|
|
812
|
-
* @param {Object} [mods] Hash object with mods
|
|
813
|
-
* @returns {String}
|
|
814
|
-
*/
|
|
815
|
-
|
|
816
|
-
/**
|
|
817
|
-
* Returns BEM class name factory.
|
|
818
|
-
*
|
|
819
|
-
* @param {String} componentName Block name
|
|
820
|
-
* @returns {Bem}
|
|
821
|
-
*/
|
|
822
|
-
easyBem = function bem(componentName) {
|
|
823
|
-
return function (elementOrMods, mods) {
|
|
824
|
-
if (!elementOrMods) {
|
|
825
|
-
return componentName;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
var element;
|
|
829
|
-
|
|
830
|
-
if (typeof elementOrMods === 'string') {
|
|
831
|
-
element = elementOrMods;
|
|
832
|
-
} else {
|
|
833
|
-
mods = elementOrMods;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
var base = componentName;
|
|
837
|
-
if (element) {
|
|
838
|
-
base += '__' + element;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
return base + (
|
|
842
|
-
mods
|
|
843
|
-
? Object.keys(mods).reduce(function (result, name) {
|
|
844
|
-
var value = mods[name];
|
|
845
|
-
|
|
846
|
-
if (value) {
|
|
847
|
-
result += ' ' + (
|
|
848
|
-
typeof value === 'boolean'
|
|
849
|
-
? (base + '--' + name)
|
|
850
|
-
: (base + '--' + name + '_' + value)
|
|
851
|
-
);
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
return result;
|
|
855
|
-
}, '')
|
|
856
|
-
: ''
|
|
857
|
-
);
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
return easyBem;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
var easyBemExports = requireEasyBem();
|
|
864
|
-
var a = /*@__PURE__*/getDefaultExportFromCjs(easyBemExports);
|
|
865
|
-
|
|
866
|
-
function c(){const e=new Map,n=(t,o,r)=>{try{return e.get(t)(o,r)}catch{return e.set(t,a(t)).get(t)(o,r)}};return n.forBlock=t=>{const o=(r,s)=>n(t,r,s);return o.forElement=r=>s=>n(t,r,s),o},n}
|
|
867
|
-
|
|
868
|
-
/*!
|
|
869
|
-
* KoliBri - The accessible HTML-Standard
|
|
870
|
-
*/
|
|
871
|
-
|
|
872
|
-
const bem$1 = c();
|
|
873
|
-
bem$1('kol-icon');
|
|
874
|
-
bem$1('kol-icon', 'icon');
|
|
875
|
-
|
|
876
|
-
/*!
|
|
877
|
-
* KoliBri - The accessible HTML-Standard
|
|
878
|
-
*/
|
|
879
|
-
|
|
880
|
-
const bem = c();
|
|
881
|
-
bem('kol-alert', 'closer');
|
|
882
|
-
bem('kol-alert', 'content');
|
|
883
|
-
bem('kol-alert', 'icon');
|
|
884
|
-
|
|
885
793
|
/*!
|
|
886
794
|
* KoliBri - The accessible HTML-Standard
|
|
887
795
|
*/
|
|
@@ -911,7 +819,7 @@ var KolEvent;
|
|
|
911
819
|
* KoliBri - The accessible HTML-Standard
|
|
912
820
|
*/
|
|
913
821
|
|
|
914
|
-
const KoliBri = new
|
|
822
|
+
const KoliBri = new fe('kol', KeyEnum, TagEnum);
|
|
915
823
|
|
|
916
824
|
var Bundesministerium;
|
|
917
825
|
(function (Bundesministerium) {
|