@public-ui/themes 1.5.0-rc.21 → 1.5.0-rc.23
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/dist/index.cjs +400 -14
- package/dist/index.d.ts +195 -195
- package/dist/index.mjs +387 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,396 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
var loglevel = {exports: {}};
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/*
|
|
8
|
+
* loglevel - https://github.com/pimterry/loglevel
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2013 Tim Perry
|
|
11
|
+
* Licensed under the MIT license.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
(function (module) {
|
|
15
|
+
(function (root, definition) {
|
|
16
|
+
if (module.exports) {
|
|
17
|
+
module.exports = definition();
|
|
18
|
+
} else {
|
|
19
|
+
root.log = definition();
|
|
20
|
+
}
|
|
21
|
+
}(commonjsGlobal, function () {
|
|
22
|
+
|
|
23
|
+
// Slightly dubious tricks to cut down minimized file size
|
|
24
|
+
var noop = function() {};
|
|
25
|
+
var undefinedType = "undefined";
|
|
26
|
+
var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
|
|
27
|
+
/Trident\/|MSIE /.test(window.navigator.userAgent)
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
var logMethods = [
|
|
31
|
+
"trace",
|
|
32
|
+
"debug",
|
|
33
|
+
"info",
|
|
34
|
+
"warn",
|
|
35
|
+
"error"
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
// Cross-browser bind equivalent that works at least back to IE6
|
|
39
|
+
function bindMethod(obj, methodName) {
|
|
40
|
+
var method = obj[methodName];
|
|
41
|
+
if (typeof method.bind === 'function') {
|
|
42
|
+
return method.bind(obj);
|
|
43
|
+
} else {
|
|
44
|
+
try {
|
|
45
|
+
return Function.prototype.bind.call(method, obj);
|
|
46
|
+
} catch (e) {
|
|
47
|
+
// Missing bind shim or IE8 + Modernizr, fallback to wrapping
|
|
48
|
+
return function() {
|
|
49
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Trace() doesn't print the message in IE, so for that case we need to wrap it
|
|
56
|
+
function traceForIE() {
|
|
57
|
+
if (console.log) {
|
|
58
|
+
if (console.log.apply) {
|
|
59
|
+
console.log.apply(console, arguments);
|
|
60
|
+
} else {
|
|
61
|
+
// In old IE, native console methods themselves don't have apply().
|
|
62
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (console.trace) console.trace();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Build the best logging method possible for this env
|
|
69
|
+
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
|
70
|
+
function realMethod(methodName) {
|
|
71
|
+
if (methodName === 'debug') {
|
|
72
|
+
methodName = 'log';
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (typeof console === undefinedType) {
|
|
76
|
+
return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
|
77
|
+
} else if (methodName === 'trace' && isIE) {
|
|
78
|
+
return traceForIE;
|
|
79
|
+
} else if (console[methodName] !== undefined) {
|
|
80
|
+
return bindMethod(console, methodName);
|
|
81
|
+
} else if (console.log !== undefined) {
|
|
82
|
+
return bindMethod(console, 'log');
|
|
83
|
+
} else {
|
|
84
|
+
return noop;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// These private functions always need `this` to be set properly
|
|
89
|
+
|
|
90
|
+
function replaceLoggingMethods(level, loggerName) {
|
|
91
|
+
/*jshint validthis:true */
|
|
92
|
+
for (var i = 0; i < logMethods.length; i++) {
|
|
93
|
+
var methodName = logMethods[i];
|
|
94
|
+
this[methodName] = (i < level) ?
|
|
95
|
+
noop :
|
|
96
|
+
this.methodFactory(methodName, level, loggerName);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Define log.log as an alias for log.debug
|
|
100
|
+
this.log = this.debug;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// In old IE versions, the console isn't present until you first open it.
|
|
104
|
+
// We build realMethod() replacements here that regenerate logging methods
|
|
105
|
+
function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {
|
|
106
|
+
return function () {
|
|
107
|
+
if (typeof console !== undefinedType) {
|
|
108
|
+
replaceLoggingMethods.call(this, level, loggerName);
|
|
109
|
+
this[methodName].apply(this, arguments);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// By default, we use closely bound real methods wherever possible, and
|
|
115
|
+
// otherwise we wait for a console to appear, and then try again.
|
|
116
|
+
function defaultMethodFactory(methodName, level, loggerName) {
|
|
117
|
+
/*jshint validthis:true */
|
|
118
|
+
return realMethod(methodName) ||
|
|
119
|
+
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function Logger(name, defaultLevel, factory) {
|
|
123
|
+
var self = this;
|
|
124
|
+
var currentLevel;
|
|
125
|
+
defaultLevel = defaultLevel == null ? "WARN" : defaultLevel;
|
|
126
|
+
|
|
127
|
+
var storageKey = "loglevel";
|
|
128
|
+
if (typeof name === "string") {
|
|
129
|
+
storageKey += ":" + name;
|
|
130
|
+
} else if (typeof name === "symbol") {
|
|
131
|
+
storageKey = undefined;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function persistLevelIfPossible(levelNum) {
|
|
135
|
+
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
|
136
|
+
|
|
137
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
138
|
+
|
|
139
|
+
// Use localStorage if available
|
|
140
|
+
try {
|
|
141
|
+
window.localStorage[storageKey] = levelName;
|
|
142
|
+
return;
|
|
143
|
+
} catch (ignore) {}
|
|
144
|
+
|
|
145
|
+
// Use session cookie as fallback
|
|
146
|
+
try {
|
|
147
|
+
window.document.cookie =
|
|
148
|
+
encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
149
|
+
} catch (ignore) {}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function getPersistedLevel() {
|
|
153
|
+
var storedLevel;
|
|
154
|
+
|
|
155
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
156
|
+
|
|
157
|
+
try {
|
|
158
|
+
storedLevel = window.localStorage[storageKey];
|
|
159
|
+
} catch (ignore) {}
|
|
160
|
+
|
|
161
|
+
// Fallback to cookies if local storage gives us nothing
|
|
162
|
+
if (typeof storedLevel === undefinedType) {
|
|
163
|
+
try {
|
|
164
|
+
var cookie = window.document.cookie;
|
|
165
|
+
var location = cookie.indexOf(
|
|
166
|
+
encodeURIComponent(storageKey) + "=");
|
|
167
|
+
if (location !== -1) {
|
|
168
|
+
storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];
|
|
169
|
+
}
|
|
170
|
+
} catch (ignore) {}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// If the stored level is not valid, treat it as if nothing was stored.
|
|
174
|
+
if (self.levels[storedLevel] === undefined) {
|
|
175
|
+
storedLevel = undefined;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return storedLevel;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function clearPersistedLevel() {
|
|
182
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
183
|
+
|
|
184
|
+
// Use localStorage if available
|
|
185
|
+
try {
|
|
186
|
+
window.localStorage.removeItem(storageKey);
|
|
187
|
+
return;
|
|
188
|
+
} catch (ignore) {}
|
|
189
|
+
|
|
190
|
+
// Use session cookie as fallback
|
|
191
|
+
try {
|
|
192
|
+
window.document.cookie =
|
|
193
|
+
encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
194
|
+
} catch (ignore) {}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/*
|
|
198
|
+
*
|
|
199
|
+
* Public logger API - see https://github.com/pimterry/loglevel for details
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
self.name = name;
|
|
204
|
+
|
|
205
|
+
self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
|
|
206
|
+
"ERROR": 4, "SILENT": 5};
|
|
207
|
+
|
|
208
|
+
self.methodFactory = factory || defaultMethodFactory;
|
|
209
|
+
|
|
210
|
+
self.getLevel = function () {
|
|
211
|
+
return currentLevel;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
self.setLevel = function (level, persist) {
|
|
215
|
+
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
|
216
|
+
level = self.levels[level.toUpperCase()];
|
|
217
|
+
}
|
|
218
|
+
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
219
|
+
currentLevel = level;
|
|
220
|
+
if (persist !== false) { // defaults to true
|
|
221
|
+
persistLevelIfPossible(level);
|
|
222
|
+
}
|
|
223
|
+
replaceLoggingMethods.call(self, level, name);
|
|
224
|
+
if (typeof console === undefinedType && level < self.levels.SILENT) {
|
|
225
|
+
return "No console available for logging";
|
|
226
|
+
}
|
|
227
|
+
} else {
|
|
228
|
+
throw "log.setLevel() called with invalid level: " + level;
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
self.setDefaultLevel = function (level) {
|
|
233
|
+
defaultLevel = level;
|
|
234
|
+
if (!getPersistedLevel()) {
|
|
235
|
+
self.setLevel(level, false);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
self.resetLevel = function () {
|
|
240
|
+
self.setLevel(defaultLevel, false);
|
|
241
|
+
clearPersistedLevel();
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
self.enableAll = function(persist) {
|
|
245
|
+
self.setLevel(self.levels.TRACE, persist);
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
self.disableAll = function(persist) {
|
|
249
|
+
self.setLevel(self.levels.SILENT, persist);
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
// Initialize with the right level
|
|
253
|
+
var initialLevel = getPersistedLevel();
|
|
254
|
+
if (initialLevel == null) {
|
|
255
|
+
initialLevel = defaultLevel;
|
|
256
|
+
}
|
|
257
|
+
self.setLevel(initialLevel, false);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/*
|
|
261
|
+
*
|
|
262
|
+
* Top-level API
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
var defaultLogger = new Logger();
|
|
267
|
+
|
|
268
|
+
var _loggersByName = {};
|
|
269
|
+
defaultLogger.getLogger = function getLogger(name) {
|
|
270
|
+
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
|
271
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
var logger = _loggersByName[name];
|
|
275
|
+
if (!logger) {
|
|
276
|
+
logger = _loggersByName[name] = new Logger(
|
|
277
|
+
name, defaultLogger.getLevel(), defaultLogger.methodFactory);
|
|
278
|
+
}
|
|
279
|
+
return logger;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
// Grab the current global log variable in case of overwrite
|
|
283
|
+
var _log = (typeof window !== undefinedType) ? window.log : undefined;
|
|
284
|
+
defaultLogger.noConflict = function() {
|
|
285
|
+
if (typeof window !== undefinedType &&
|
|
286
|
+
window.log === defaultLogger) {
|
|
287
|
+
window.log = _log;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
return defaultLogger;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
defaultLogger.getLoggers = function getLoggers() {
|
|
294
|
+
return _loggersByName;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
// ES6 default export, for compatibility
|
|
298
|
+
defaultLogger['default'] = defaultLogger;
|
|
299
|
+
|
|
300
|
+
return defaultLogger;
|
|
301
|
+
}));
|
|
302
|
+
} (loglevel));
|
|
303
|
+
|
|
304
|
+
const createTranslation=(e,t)=>o=>o(e,t),createTheme=(e,t)=>o=>o(e,t),STORE="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};new Map;const STYLING_TASK_QUEUE=new Map,HYDRATED_HISTORY=[],CSS_PROPERTIES_REGISTERED=new Set,CSS_STYLE_CACHE=new Map,REGEX_CSS_PROPERTIES=/--[^;]+/g,REGEX_SPLIT_CSS_PROPERTY=/:/;"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={CSS_STYLE_CACHE:CSS_STYLE_CACHE,HYDRATED_HISTORY:HYDRATED_HISTORY,STYLING_TASK_QUEUE:STYLING_TASK_QUEUE});const extractProperties=(e,t)=>{let o=t.match(REGEX_CSS_PROPERTIES);if(Array.isArray(o)){o=o.filter((e=>REGEX_SPLIT_CSS_PROPERTY.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t);}CSS_PROPERTIES_REGISTERED.add(e);},getCssStyle=(e,t)=>"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&"object"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes&&"object"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]&&"string"==typeof STORE.A11yUi.Themes[e][t]?STORE.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",removeStyle=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t);}},patchStyle=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t);})),e.adoptedStyleSheets=o;}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild);}));}},encroachStyles=(e,t,o)=>{if(!1!==o){const s=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let r;try{r=[...Array.from(e.adoptedStyleSheets)];}catch(e){r=[];}"before"===o?.mode?(s.reverse().forEach((e=>t.unshift(e.innerHTML))),r.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(s.forEach((e=>t.push(e.innerHTML))),r.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))));}},setThemeStyleAfterHydrated=(e,t,o)=>{const s=t.name||"default";let r;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");r=e.shadowRoot;}catch(t){r=e;}if(CSS_STYLE_CACHE.get(s)?.has(e.tagName))switchStyle(e,r,CSS_STYLE_CACHE.get(s)?.get(e.tagName),o);else {const n=getCssStyle(s,"PROPERTIES"),a=getCssStyle(s,"GLOBAL"),l=getCssStyle(s,e.tagName);!1===CSS_PROPERTIES_REGISTERED.has(s)&&extractProperties(s,a);const i=[n,a,l];encroachStyles(r,i,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,i),!0===t.cache&&(!1===CSS_STYLE_CACHE.has(s)&&CSS_STYLE_CACHE.set(s,new Map),CSS_STYLE_CACHE.get(s)?.set(e.tagName,i)),switchStyle(e,r,i,o);}},switchStyle=(e,t,o,s)=>{removeStyle(t),patchStyle(t,o),e.style.display=s;},logHydratedHistory=e=>{"debug"===e.loglevel&&HYDRATED_HISTORY.push({timestamp:Date.now(),numberOfTasks:STYLING_TASK_QUEUE.size});},deleteDoneTask=e=>{STYLING_TASK_QUEUE.delete(e);},loggedDeleteDoneTask=(e,t)=>{deleteDoneTask(e),logHydratedHistory(t);},observerCallback=e=>{for(const t of e)if(STYLING_TASK_QUEUE.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=STYLING_TASK_QUEUE.get(t.target);setThemeStyleAfterHydrated(t.target,o,e),loggedDeleteDoneTask(t.target,o);}};let observer;try{observer=new MutationObserver(observerCallback);}catch(e){observer=null;}class Theme{constructor(e,t,o){this.createTheme=(e,t)=>createTheme(e,t),this.createTranslation=(e,t)=>createTranslation(e,t),this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(o);}}
|
|
305
|
+
|
|
306
|
+
var KeyEnum = /* @__PURE__ */ ((KeyEnum2) => {
|
|
307
|
+
KeyEnum2[KeyEnum2["error"] = 0] = "error";
|
|
308
|
+
KeyEnum2[KeyEnum2["warning"] = 1] = "warning";
|
|
309
|
+
KeyEnum2[KeyEnum2["info"] = 2] = "info";
|
|
310
|
+
KeyEnum2[KeyEnum2["success"] = 3] = "success";
|
|
311
|
+
KeyEnum2[KeyEnum2["message"] = 4] = "message";
|
|
312
|
+
KeyEnum2[KeyEnum2["close"] = 5] = "close";
|
|
313
|
+
KeyEnum2[KeyEnum2["form-description"] = 6] = "form-description";
|
|
314
|
+
KeyEnum2[KeyEnum2["of"] = 7] = "of";
|
|
315
|
+
KeyEnum2[KeyEnum2["characters"] = 8] = "characters";
|
|
316
|
+
KeyEnum2[KeyEnum2["new"] = 9] = "new";
|
|
317
|
+
KeyEnum2[KeyEnum2["no-entries"] = 10] = "no-entries";
|
|
318
|
+
KeyEnum2[KeyEnum2["change-order"] = 11] = "change-order";
|
|
319
|
+
KeyEnum2[KeyEnum2["action-running"] = 12] = "action-running";
|
|
320
|
+
KeyEnum2[KeyEnum2["action-done"] = 13] = "action-done";
|
|
321
|
+
KeyEnum2[KeyEnum2["page-first"] = 14] = "page-first";
|
|
322
|
+
KeyEnum2[KeyEnum2["page-back"] = 15] = "page-back";
|
|
323
|
+
KeyEnum2[KeyEnum2["page-next"] = 16] = "page-next";
|
|
324
|
+
KeyEnum2[KeyEnum2["page-last"] = 17] = "page-last";
|
|
325
|
+
KeyEnum2[KeyEnum2["entries-per-site"] = 18] = "entries-per-site";
|
|
326
|
+
KeyEnum2[KeyEnum2["page-current"] = 19] = "page-current";
|
|
327
|
+
KeyEnum2[KeyEnum2["page-selected"] = 20] = "page-selected";
|
|
328
|
+
KeyEnum2[KeyEnum2["page-per-site"] = 21] = "page-per-site";
|
|
329
|
+
KeyEnum2[KeyEnum2["nav-maximize"] = 22] = "nav-maximize";
|
|
330
|
+
KeyEnum2[KeyEnum2["nav-minimize"] = 23] = "nav-minimize";
|
|
331
|
+
KeyEnum2[KeyEnum2["logo-description"] = 24] = "logo-description";
|
|
332
|
+
KeyEnum2[KeyEnum2["open-link-in-tab"] = 25] = "open-link-in-tab";
|
|
333
|
+
KeyEnum2[KeyEnum2["kolibri-logo"] = 26] = "kolibri-logo";
|
|
334
|
+
return KeyEnum2;
|
|
335
|
+
})(KeyEnum || {});
|
|
336
|
+
|
|
337
|
+
var TagEnum = /* @__PURE__ */ ((TagEnum2) => {
|
|
338
|
+
TagEnum2[TagEnum2["abbr"] = 0] = "abbr";
|
|
339
|
+
TagEnum2[TagEnum2["accordion"] = 1] = "accordion";
|
|
340
|
+
TagEnum2[TagEnum2["accordion-group"] = 2] = "accordion-group";
|
|
341
|
+
TagEnum2[TagEnum2["alert"] = 3] = "alert";
|
|
342
|
+
TagEnum2[TagEnum2["avatar"] = 4] = "avatar";
|
|
343
|
+
TagEnum2[TagEnum2["badge"] = 5] = "badge";
|
|
344
|
+
TagEnum2[TagEnum2["breadcrumb"] = 6] = "breadcrumb";
|
|
345
|
+
TagEnum2[TagEnum2["button"] = 7] = "button";
|
|
346
|
+
TagEnum2[TagEnum2["button-group"] = 8] = "button-group";
|
|
347
|
+
TagEnum2[TagEnum2["button-link"] = 9] = "button-link";
|
|
348
|
+
TagEnum2[TagEnum2["card"] = 10] = "card";
|
|
349
|
+
TagEnum2[TagEnum2["details"] = 11] = "details";
|
|
350
|
+
TagEnum2[TagEnum2["dialog"] = 12] = "dialog";
|
|
351
|
+
TagEnum2[TagEnum2["dropdown"] = 13] = "dropdown";
|
|
352
|
+
TagEnum2[TagEnum2["form"] = 14] = "form";
|
|
353
|
+
TagEnum2[TagEnum2["heading"] = 15] = "heading";
|
|
354
|
+
TagEnum2[TagEnum2["icon"] = 16] = "icon";
|
|
355
|
+
TagEnum2[TagEnum2["image"] = 17] = "image";
|
|
356
|
+
TagEnum2[TagEnum2["indented-text"] = 18] = "indented-text";
|
|
357
|
+
TagEnum2[TagEnum2["input-checkbox"] = 19] = "input-checkbox";
|
|
358
|
+
TagEnum2[TagEnum2["input-color"] = 20] = "input-color";
|
|
359
|
+
TagEnum2[TagEnum2["input-date"] = 21] = "input-date";
|
|
360
|
+
TagEnum2[TagEnum2["input-file"] = 22] = "input-file";
|
|
361
|
+
TagEnum2[TagEnum2["input-email"] = 23] = "input-email";
|
|
362
|
+
TagEnum2[TagEnum2["input-number"] = 24] = "input-number";
|
|
363
|
+
TagEnum2[TagEnum2["input-password"] = 25] = "input-password";
|
|
364
|
+
TagEnum2[TagEnum2["input-radio"] = 26] = "input-radio";
|
|
365
|
+
TagEnum2[TagEnum2["input-range"] = 27] = "input-range";
|
|
366
|
+
TagEnum2[TagEnum2["input-text"] = 28] = "input-text";
|
|
367
|
+
TagEnum2[TagEnum2["link"] = 29] = "link";
|
|
368
|
+
TagEnum2[TagEnum2["link-button"] = 30] = "link-button";
|
|
369
|
+
TagEnum2[TagEnum2["link-group"] = 31] = "link-group";
|
|
370
|
+
TagEnum2[TagEnum2["modal"] = 32] = "modal";
|
|
371
|
+
TagEnum2[TagEnum2["nav"] = 33] = "nav";
|
|
372
|
+
TagEnum2[TagEnum2["pagination"] = 34] = "pagination";
|
|
373
|
+
TagEnum2[TagEnum2["popover"] = 35] = "popover";
|
|
374
|
+
TagEnum2[TagEnum2["progress"] = 36] = "progress";
|
|
375
|
+
TagEnum2[TagEnum2["select"] = 37] = "select";
|
|
376
|
+
TagEnum2[TagEnum2["separator"] = 38] = "separator";
|
|
377
|
+
TagEnum2[TagEnum2["skip-nav"] = 39] = "skip-nav";
|
|
378
|
+
TagEnum2[TagEnum2["spin"] = 40] = "spin";
|
|
379
|
+
TagEnum2[TagEnum2["symbol"] = 41] = "symbol";
|
|
380
|
+
TagEnum2[TagEnum2["table"] = 42] = "table";
|
|
381
|
+
TagEnum2[TagEnum2["tabs"] = 43] = "tabs";
|
|
382
|
+
TagEnum2[TagEnum2["textarea"] = 44] = "textarea";
|
|
383
|
+
TagEnum2[TagEnum2["toast"] = 45] = "toast";
|
|
384
|
+
TagEnum2[TagEnum2["toolbar"] = 46] = "toolbar";
|
|
385
|
+
TagEnum2[TagEnum2["tooltip"] = 47] = "tooltip";
|
|
386
|
+
return TagEnum2;
|
|
387
|
+
})(TagEnum || {});
|
|
388
|
+
|
|
389
|
+
const KoliBri = new Theme("kol", KeyEnum, TagEnum);
|
|
390
|
+
|
|
391
|
+
const BAMF = KoliBri.createTheme("bamf", {});
|
|
392
|
+
|
|
393
|
+
const BPA = KoliBri.createTheme("bpa", {
|
|
8
394
|
GLOBAL: `:host {
|
|
9
395
|
--font-family-sans: BundesSans Web, Arial, Helvetica, sans-serif;
|
|
10
396
|
--font-family-serif: BundesSerif Web, var(--kolibri-font-family-sans);
|
|
@@ -1438,7 +1824,7 @@ const BPA = components.KoliBri.createTheme("bpa", {
|
|
|
1438
1824
|
}`
|
|
1439
1825
|
});
|
|
1440
1826
|
|
|
1441
|
-
const BZSt =
|
|
1827
|
+
const BZSt = KoliBri.createTheme("bzst", {
|
|
1442
1828
|
GLOBAL: `/* colors */
|
|
1443
1829
|
:root,
|
|
1444
1830
|
:host {
|
|
@@ -4105,7 +4491,7 @@ const BZSt = components.KoliBri.createTheme("bzst", {
|
|
|
4105
4491
|
}`
|
|
4106
4492
|
});
|
|
4107
4493
|
|
|
4108
|
-
const BMF =
|
|
4494
|
+
const BMF = KoliBri.createTheme("bmf", {
|
|
4109
4495
|
GLOBAL: `/* Design Tokens */
|
|
4110
4496
|
:host {
|
|
4111
4497
|
--border-radius: 5px;
|
|
@@ -13571,7 +13957,7 @@ const BMF = components.KoliBri.createTheme("bmf", {
|
|
|
13571
13957
|
}`
|
|
13572
13958
|
});
|
|
13573
13959
|
|
|
13574
|
-
const DESYv1 =
|
|
13960
|
+
const DESYv1 = KoliBri.createTheme("desy-v1", {
|
|
13575
13961
|
GLOBAL: `:host {
|
|
13576
13962
|
--color-primary: #326cae;
|
|
13577
13963
|
--color-primary-10: #1e538f;
|
|
@@ -16245,7 +16631,7 @@ const DESYv1 = components.KoliBri.createTheme("desy-v1", {
|
|
|
16245
16631
|
}`
|
|
16246
16632
|
});
|
|
16247
16633
|
|
|
16248
|
-
const DESYv2 =
|
|
16634
|
+
const DESYv2 = KoliBri.createTheme("desy-v2", {
|
|
16249
16635
|
GLOBAL: `
|
|
16250
16636
|
kol-tooltip .area {
|
|
16251
16637
|
background-color:#f2f2f2;
|
|
@@ -18933,7 +19319,7 @@ const DESYv2 = components.KoliBri.createTheme("desy-v2", {
|
|
|
18933
19319
|
}`
|
|
18934
19320
|
});
|
|
18935
19321
|
|
|
18936
|
-
const ECL_EC =
|
|
19322
|
+
const ECL_EC = KoliBri.createTheme("ecl-ec", {
|
|
18937
19323
|
GLOBAL: `kol-tooltip .area {
|
|
18938
19324
|
background-color: #f2f2f2;
|
|
18939
19325
|
}
|
|
@@ -20305,7 +20691,7 @@ const ECL_EC = components.KoliBri.createTheme("ecl-ec", {
|
|
|
20305
20691
|
}`
|
|
20306
20692
|
});
|
|
20307
20693
|
|
|
20308
|
-
const ECL_EU =
|
|
20694
|
+
const ECL_EU = KoliBri.createTheme("ecl-eu", {
|
|
20309
20695
|
GLOBAL: `kol-tooltip .area {
|
|
20310
20696
|
background-color: #f2f2f2;
|
|
20311
20697
|
}
|
|
@@ -21652,7 +22038,7 @@ const ECL_EU = components.KoliBri.createTheme("ecl-eu", {
|
|
|
21652
22038
|
}`
|
|
21653
22039
|
});
|
|
21654
22040
|
|
|
21655
|
-
const ITZBund =
|
|
22041
|
+
const ITZBund = KoliBri.createTheme("itzbund", {
|
|
21656
22042
|
GLOBAL: `:host {
|
|
21657
22043
|
--border-color: var(--color-anthrazit);
|
|
21658
22044
|
--border-radius: 0.125rem;
|
|
@@ -23312,7 +23698,7 @@ const ITZBund = components.KoliBri.createTheme("itzbund", {
|
|
|
23312
23698
|
}`
|
|
23313
23699
|
});
|
|
23314
23700
|
|
|
23315
|
-
const MAPZ =
|
|
23701
|
+
const MAPZ = KoliBri.createTheme("mapz", {
|
|
23316
23702
|
GLOBAL: `:host {
|
|
23317
23703
|
--kolibri-background-color: white;
|
|
23318
23704
|
--kolibri-background-color-modal: rgba(0, 0, 0, 0.5);
|
|
@@ -32181,7 +32567,7 @@ const MAPZ = components.KoliBri.createTheme("mapz", {
|
|
|
32181
32567
|
}`
|
|
32182
32568
|
});
|
|
32183
32569
|
|
|
32184
|
-
const ZOLLv2 =
|
|
32570
|
+
const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
|
|
32185
32571
|
GLOBAL: `:host {
|
|
32186
32572
|
--border-color: var(--color-neutral);
|
|
32187
32573
|
--border-radius: 0.25rem;
|
|
@@ -40737,9 +41123,9 @@ const ZOLLv2 = components.KoliBri.createTheme("zoll-v2", {
|
|
|
40737
41123
|
}`
|
|
40738
41124
|
});
|
|
40739
41125
|
|
|
40740
|
-
const DE =
|
|
41126
|
+
const DE = KoliBri.createTranslation("de", {});
|
|
40741
41127
|
|
|
40742
|
-
const EN =
|
|
41128
|
+
const EN = KoliBri.createTranslation("en", {});
|
|
40743
41129
|
|
|
40744
41130
|
exports.BAMF = BAMF;
|
|
40745
41131
|
exports.BMF = BMF;
|