@public-ui/themes 1.5.0-rc.20 → 1.5.0-rc.22

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.mjs CHANGED
@@ -1,4 +1,390 @@
1
- import { KoliBri } from '@public-ui/components';
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ var loglevel = {exports: {}};
4
+
5
+ /*
6
+ * loglevel - https://github.com/pimterry/loglevel
7
+ *
8
+ * Copyright (c) 2013 Tim Perry
9
+ * Licensed under the MIT license.
10
+ */
11
+
12
+ (function (module) {
13
+ (function (root, definition) {
14
+ if (module.exports) {
15
+ module.exports = definition();
16
+ } else {
17
+ root.log = definition();
18
+ }
19
+ }(commonjsGlobal, function () {
20
+
21
+ // Slightly dubious tricks to cut down minimized file size
22
+ var noop = function() {};
23
+ var undefinedType = "undefined";
24
+ var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
25
+ /Trident\/|MSIE /.test(window.navigator.userAgent)
26
+ );
27
+
28
+ var logMethods = [
29
+ "trace",
30
+ "debug",
31
+ "info",
32
+ "warn",
33
+ "error"
34
+ ];
35
+
36
+ // Cross-browser bind equivalent that works at least back to IE6
37
+ function bindMethod(obj, methodName) {
38
+ var method = obj[methodName];
39
+ if (typeof method.bind === 'function') {
40
+ return method.bind(obj);
41
+ } else {
42
+ try {
43
+ return Function.prototype.bind.call(method, obj);
44
+ } catch (e) {
45
+ // Missing bind shim or IE8 + Modernizr, fallback to wrapping
46
+ return function() {
47
+ return Function.prototype.apply.apply(method, [obj, arguments]);
48
+ };
49
+ }
50
+ }
51
+ }
52
+
53
+ // Trace() doesn't print the message in IE, so for that case we need to wrap it
54
+ function traceForIE() {
55
+ if (console.log) {
56
+ if (console.log.apply) {
57
+ console.log.apply(console, arguments);
58
+ } else {
59
+ // In old IE, native console methods themselves don't have apply().
60
+ Function.prototype.apply.apply(console.log, [console, arguments]);
61
+ }
62
+ }
63
+ if (console.trace) console.trace();
64
+ }
65
+
66
+ // Build the best logging method possible for this env
67
+ // Wherever possible we want to bind, not wrap, to preserve stack traces
68
+ function realMethod(methodName) {
69
+ if (methodName === 'debug') {
70
+ methodName = 'log';
71
+ }
72
+
73
+ if (typeof console === undefinedType) {
74
+ return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
75
+ } else if (methodName === 'trace' && isIE) {
76
+ return traceForIE;
77
+ } else if (console[methodName] !== undefined) {
78
+ return bindMethod(console, methodName);
79
+ } else if (console.log !== undefined) {
80
+ return bindMethod(console, 'log');
81
+ } else {
82
+ return noop;
83
+ }
84
+ }
85
+
86
+ // These private functions always need `this` to be set properly
87
+
88
+ function replaceLoggingMethods(level, loggerName) {
89
+ /*jshint validthis:true */
90
+ for (var i = 0; i < logMethods.length; i++) {
91
+ var methodName = logMethods[i];
92
+ this[methodName] = (i < level) ?
93
+ noop :
94
+ this.methodFactory(methodName, level, loggerName);
95
+ }
96
+
97
+ // Define log.log as an alias for log.debug
98
+ this.log = this.debug;
99
+ }
100
+
101
+ // In old IE versions, the console isn't present until you first open it.
102
+ // We build realMethod() replacements here that regenerate logging methods
103
+ function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {
104
+ return function () {
105
+ if (typeof console !== undefinedType) {
106
+ replaceLoggingMethods.call(this, level, loggerName);
107
+ this[methodName].apply(this, arguments);
108
+ }
109
+ };
110
+ }
111
+
112
+ // By default, we use closely bound real methods wherever possible, and
113
+ // otherwise we wait for a console to appear, and then try again.
114
+ function defaultMethodFactory(methodName, level, loggerName) {
115
+ /*jshint validthis:true */
116
+ return realMethod(methodName) ||
117
+ enableLoggingWhenConsoleArrives.apply(this, arguments);
118
+ }
119
+
120
+ function Logger(name, defaultLevel, factory) {
121
+ var self = this;
122
+ var currentLevel;
123
+ defaultLevel = defaultLevel == null ? "WARN" : defaultLevel;
124
+
125
+ var storageKey = "loglevel";
126
+ if (typeof name === "string") {
127
+ storageKey += ":" + name;
128
+ } else if (typeof name === "symbol") {
129
+ storageKey = undefined;
130
+ }
131
+
132
+ function persistLevelIfPossible(levelNum) {
133
+ var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
134
+
135
+ if (typeof window === undefinedType || !storageKey) return;
136
+
137
+ // Use localStorage if available
138
+ try {
139
+ window.localStorage[storageKey] = levelName;
140
+ return;
141
+ } catch (ignore) {}
142
+
143
+ // Use session cookie as fallback
144
+ try {
145
+ window.document.cookie =
146
+ encodeURIComponent(storageKey) + "=" + levelName + ";";
147
+ } catch (ignore) {}
148
+ }
149
+
150
+ function getPersistedLevel() {
151
+ var storedLevel;
152
+
153
+ if (typeof window === undefinedType || !storageKey) return;
154
+
155
+ try {
156
+ storedLevel = window.localStorage[storageKey];
157
+ } catch (ignore) {}
158
+
159
+ // Fallback to cookies if local storage gives us nothing
160
+ if (typeof storedLevel === undefinedType) {
161
+ try {
162
+ var cookie = window.document.cookie;
163
+ var location = cookie.indexOf(
164
+ encodeURIComponent(storageKey) + "=");
165
+ if (location !== -1) {
166
+ storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];
167
+ }
168
+ } catch (ignore) {}
169
+ }
170
+
171
+ // If the stored level is not valid, treat it as if nothing was stored.
172
+ if (self.levels[storedLevel] === undefined) {
173
+ storedLevel = undefined;
174
+ }
175
+
176
+ return storedLevel;
177
+ }
178
+
179
+ function clearPersistedLevel() {
180
+ if (typeof window === undefinedType || !storageKey) return;
181
+
182
+ // Use localStorage if available
183
+ try {
184
+ window.localStorage.removeItem(storageKey);
185
+ return;
186
+ } catch (ignore) {}
187
+
188
+ // Use session cookie as fallback
189
+ try {
190
+ window.document.cookie =
191
+ encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
192
+ } catch (ignore) {}
193
+ }
194
+
195
+ /*
196
+ *
197
+ * Public logger API - see https://github.com/pimterry/loglevel for details
198
+ *
199
+ */
200
+
201
+ self.name = name;
202
+
203
+ self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
204
+ "ERROR": 4, "SILENT": 5};
205
+
206
+ self.methodFactory = factory || defaultMethodFactory;
207
+
208
+ self.getLevel = function () {
209
+ return currentLevel;
210
+ };
211
+
212
+ self.setLevel = function (level, persist) {
213
+ if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
214
+ level = self.levels[level.toUpperCase()];
215
+ }
216
+ if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
217
+ currentLevel = level;
218
+ if (persist !== false) { // defaults to true
219
+ persistLevelIfPossible(level);
220
+ }
221
+ replaceLoggingMethods.call(self, level, name);
222
+ if (typeof console === undefinedType && level < self.levels.SILENT) {
223
+ return "No console available for logging";
224
+ }
225
+ } else {
226
+ throw "log.setLevel() called with invalid level: " + level;
227
+ }
228
+ };
229
+
230
+ self.setDefaultLevel = function (level) {
231
+ defaultLevel = level;
232
+ if (!getPersistedLevel()) {
233
+ self.setLevel(level, false);
234
+ }
235
+ };
236
+
237
+ self.resetLevel = function () {
238
+ self.setLevel(defaultLevel, false);
239
+ clearPersistedLevel();
240
+ };
241
+
242
+ self.enableAll = function(persist) {
243
+ self.setLevel(self.levels.TRACE, persist);
244
+ };
245
+
246
+ self.disableAll = function(persist) {
247
+ self.setLevel(self.levels.SILENT, persist);
248
+ };
249
+
250
+ // Initialize with the right level
251
+ var initialLevel = getPersistedLevel();
252
+ if (initialLevel == null) {
253
+ initialLevel = defaultLevel;
254
+ }
255
+ self.setLevel(initialLevel, false);
256
+ }
257
+
258
+ /*
259
+ *
260
+ * Top-level API
261
+ *
262
+ */
263
+
264
+ var defaultLogger = new Logger();
265
+
266
+ var _loggersByName = {};
267
+ defaultLogger.getLogger = function getLogger(name) {
268
+ if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
269
+ throw new TypeError("You must supply a name when creating a logger.");
270
+ }
271
+
272
+ var logger = _loggersByName[name];
273
+ if (!logger) {
274
+ logger = _loggersByName[name] = new Logger(
275
+ name, defaultLogger.getLevel(), defaultLogger.methodFactory);
276
+ }
277
+ return logger;
278
+ };
279
+
280
+ // Grab the current global log variable in case of overwrite
281
+ var _log = (typeof window !== undefinedType) ? window.log : undefined;
282
+ defaultLogger.noConflict = function() {
283
+ if (typeof window !== undefinedType &&
284
+ window.log === defaultLogger) {
285
+ window.log = _log;
286
+ }
287
+
288
+ return defaultLogger;
289
+ };
290
+
291
+ defaultLogger.getLoggers = function getLoggers() {
292
+ return _loggersByName;
293
+ };
294
+
295
+ // ES6 default export, for compatibility
296
+ defaultLogger['default'] = defaultLogger;
297
+
298
+ return defaultLogger;
299
+ }));
300
+ } (loglevel));
301
+
302
+ 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);}}
303
+
304
+ var KeyEnum = /* @__PURE__ */ ((KeyEnum2) => {
305
+ KeyEnum2[KeyEnum2["error"] = 0] = "error";
306
+ KeyEnum2[KeyEnum2["warning"] = 1] = "warning";
307
+ KeyEnum2[KeyEnum2["info"] = 2] = "info";
308
+ KeyEnum2[KeyEnum2["success"] = 3] = "success";
309
+ KeyEnum2[KeyEnum2["message"] = 4] = "message";
310
+ KeyEnum2[KeyEnum2["close"] = 5] = "close";
311
+ KeyEnum2[KeyEnum2["form-description"] = 6] = "form-description";
312
+ KeyEnum2[KeyEnum2["of"] = 7] = "of";
313
+ KeyEnum2[KeyEnum2["characters"] = 8] = "characters";
314
+ KeyEnum2[KeyEnum2["new"] = 9] = "new";
315
+ KeyEnum2[KeyEnum2["no-entries"] = 10] = "no-entries";
316
+ KeyEnum2[KeyEnum2["change-order"] = 11] = "change-order";
317
+ KeyEnum2[KeyEnum2["action-running"] = 12] = "action-running";
318
+ KeyEnum2[KeyEnum2["action-done"] = 13] = "action-done";
319
+ KeyEnum2[KeyEnum2["page-first"] = 14] = "page-first";
320
+ KeyEnum2[KeyEnum2["page-back"] = 15] = "page-back";
321
+ KeyEnum2[KeyEnum2["page-next"] = 16] = "page-next";
322
+ KeyEnum2[KeyEnum2["page-last"] = 17] = "page-last";
323
+ KeyEnum2[KeyEnum2["entries-per-site"] = 18] = "entries-per-site";
324
+ KeyEnum2[KeyEnum2["page-current"] = 19] = "page-current";
325
+ KeyEnum2[KeyEnum2["page-selected"] = 20] = "page-selected";
326
+ KeyEnum2[KeyEnum2["page-per-site"] = 21] = "page-per-site";
327
+ KeyEnum2[KeyEnum2["nav-maximize"] = 22] = "nav-maximize";
328
+ KeyEnum2[KeyEnum2["nav-minimize"] = 23] = "nav-minimize";
329
+ KeyEnum2[KeyEnum2["logo-description"] = 24] = "logo-description";
330
+ KeyEnum2[KeyEnum2["open-link-in-tab"] = 25] = "open-link-in-tab";
331
+ KeyEnum2[KeyEnum2["kolibri-logo"] = 26] = "kolibri-logo";
332
+ return KeyEnum2;
333
+ })(KeyEnum || {});
334
+
335
+ var TagEnum = /* @__PURE__ */ ((TagEnum2) => {
336
+ TagEnum2[TagEnum2["abbr"] = 0] = "abbr";
337
+ TagEnum2[TagEnum2["accordion"] = 1] = "accordion";
338
+ TagEnum2[TagEnum2["accordion-group"] = 2] = "accordion-group";
339
+ TagEnum2[TagEnum2["alert"] = 3] = "alert";
340
+ TagEnum2[TagEnum2["avatar"] = 4] = "avatar";
341
+ TagEnum2[TagEnum2["badge"] = 5] = "badge";
342
+ TagEnum2[TagEnum2["breadcrumb"] = 6] = "breadcrumb";
343
+ TagEnum2[TagEnum2["button"] = 7] = "button";
344
+ TagEnum2[TagEnum2["button-group"] = 8] = "button-group";
345
+ TagEnum2[TagEnum2["button-link"] = 9] = "button-link";
346
+ TagEnum2[TagEnum2["card"] = 10] = "card";
347
+ TagEnum2[TagEnum2["details"] = 11] = "details";
348
+ TagEnum2[TagEnum2["dialog"] = 12] = "dialog";
349
+ TagEnum2[TagEnum2["dropdown"] = 13] = "dropdown";
350
+ TagEnum2[TagEnum2["form"] = 14] = "form";
351
+ TagEnum2[TagEnum2["heading"] = 15] = "heading";
352
+ TagEnum2[TagEnum2["icon"] = 16] = "icon";
353
+ TagEnum2[TagEnum2["image"] = 17] = "image";
354
+ TagEnum2[TagEnum2["indented-text"] = 18] = "indented-text";
355
+ TagEnum2[TagEnum2["input-checkbox"] = 19] = "input-checkbox";
356
+ TagEnum2[TagEnum2["input-color"] = 20] = "input-color";
357
+ TagEnum2[TagEnum2["input-date"] = 21] = "input-date";
358
+ TagEnum2[TagEnum2["input-file"] = 22] = "input-file";
359
+ TagEnum2[TagEnum2["input-email"] = 23] = "input-email";
360
+ TagEnum2[TagEnum2["input-number"] = 24] = "input-number";
361
+ TagEnum2[TagEnum2["input-password"] = 25] = "input-password";
362
+ TagEnum2[TagEnum2["input-radio"] = 26] = "input-radio";
363
+ TagEnum2[TagEnum2["input-range"] = 27] = "input-range";
364
+ TagEnum2[TagEnum2["input-text"] = 28] = "input-text";
365
+ TagEnum2[TagEnum2["link"] = 29] = "link";
366
+ TagEnum2[TagEnum2["link-button"] = 30] = "link-button";
367
+ TagEnum2[TagEnum2["link-group"] = 31] = "link-group";
368
+ TagEnum2[TagEnum2["modal"] = 32] = "modal";
369
+ TagEnum2[TagEnum2["nav"] = 33] = "nav";
370
+ TagEnum2[TagEnum2["pagination"] = 34] = "pagination";
371
+ TagEnum2[TagEnum2["popover"] = 35] = "popover";
372
+ TagEnum2[TagEnum2["progress"] = 36] = "progress";
373
+ TagEnum2[TagEnum2["select"] = 37] = "select";
374
+ TagEnum2[TagEnum2["separator"] = 38] = "separator";
375
+ TagEnum2[TagEnum2["skip-nav"] = 39] = "skip-nav";
376
+ TagEnum2[TagEnum2["spin"] = 40] = "spin";
377
+ TagEnum2[TagEnum2["symbol"] = 41] = "symbol";
378
+ TagEnum2[TagEnum2["table"] = 42] = "table";
379
+ TagEnum2[TagEnum2["tabs"] = 43] = "tabs";
380
+ TagEnum2[TagEnum2["textarea"] = 44] = "textarea";
381
+ TagEnum2[TagEnum2["toast"] = 45] = "toast";
382
+ TagEnum2[TagEnum2["toolbar"] = 46] = "toolbar";
383
+ TagEnum2[TagEnum2["tooltip"] = 47] = "tooltip";
384
+ return TagEnum2;
385
+ })(TagEnum || {});
386
+
387
+ const KoliBri = new Theme("kol", KeyEnum, TagEnum);
2
388
 
3
389
  const BAMF = KoliBri.createTheme("bamf", {});
4
390
 
@@ -23369,13 +23755,9 @@ const MAPZ = KoliBri.createTheme("mapz", {
23369
23755
  padding: 0;
23370
23756
  }
23371
23757
  *[tabindex]:focus,
23372
- a:focus,
23373
- button:focus,
23374
- input:focus,
23375
- select:focus,
23376
- summary:focus,
23377
- textarea:focus {
23378
- border-radius: var(--kolibri-border-radius);
23758
+ kol-input:not(.checkbox, .radio) .input:focus-within,
23759
+ kol-input:is(.checkbox, .radio) input:focus,
23760
+ summary:focus {
23379
23761
  cursor: pointer;
23380
23762
  outline-color: var(--kolibri-color-outline);
23381
23763
  outline-offset: 2px;
@@ -23560,53 +23942,54 @@ const MAPZ = KoliBri.createTheme("mapz", {
23560
23942
  .card .content {
23561
23943
  padding: var(--spacing);
23562
23944
  }`,
23563
- "KOL-INPUT-TEXT": `kol-input {
23564
- display: grid;
23565
- padding: 0;
23566
- margin: 0;
23945
+ "KOL-INPUT-TEXT": `input,
23946
+ select,
23947
+ textarea {
23948
+ border: none;
23567
23949
  }
23568
- input:focus,
23569
- input:hover,
23570
- select:focus,
23571
- select:hover,
23572
- textarea:focus,
23573
- textarea:hover {
23574
- border-color: var(--kolibri-color-secondary);
23950
+ input[type="color"] {
23951
+ border: none;
23952
+ min-height: 40px !important;
23953
+ }
23954
+ input[type="color"],
23955
+ input[type="file"] {
23956
+ background-color: transparent;
23957
+ }
23958
+ kol-input {
23959
+ gap: var(--spacing);
23575
23960
  }
23576
23961
  kol-input > label {
23577
23962
  order: 1;
23578
- }
23579
- kol-input > label > span {
23580
23963
  color: var(--default-letter);
23581
- font-size: 0.875rem;
23582
- line-height: 1.5rem;
23583
23964
  }
23584
- kol-input > div.input {
23585
- background-color: white;
23965
+ kol-input > .input {
23966
+ border-color: var(--kolibri-border-color);
23586
23967
  border-radius: 0.25rem;
23587
- display: block;
23968
+ border-style: solid;
23969
+ border-width: 2px;
23588
23970
  order: 2;
23589
23971
  }
23590
- kol-input > kol-alert.error {
23972
+ kol-input:hover > .input {
23973
+ border-color: var(--kolibri-color-secondary);
23974
+ }
23975
+ kol-input > .input > kol-icon:first-child {
23976
+ margin-left: 0.75em;
23977
+ }
23978
+ kol-input > .input > kol-icon:last-child {
23979
+ margin-right: 0.75em;
23980
+ }
23981
+ kol-input > .error {
23591
23982
  order: 3;
23592
23983
  }
23984
+ kol-input > .hint {
23985
+ order: 4;
23986
+ font-size: 0.875em;
23987
+ }
23593
23988
  input,
23594
23989
  select,
23595
23990
  textarea {
23596
- font-family: var(--font-family);
23597
- background-color: transparent;
23598
- box-sizing: border-box;
23599
- font-size: 1rem;
23600
- display: inline-flex;
23601
- line-height: 1.5em;
23602
23991
  color: var(--default-letter);
23603
- border-color: var(--kolibri-border-color);
23604
- border-width: 2px;
23605
- border-style: solid;
23606
23992
  padding: 0.5em 0.75em;
23607
- border-radius: 0.25rem;
23608
- overflow: hidden;
23609
- width: 100%;
23610
23993
  }
23611
23994
  input:not([type="range"]),
23612
23995
  select:not([multiple]) {
@@ -23620,27 +24003,11 @@ const MAPZ = KoliBri.createTheme("mapz", {
23620
24003
  }
23621
24004
  input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
23622
24005
  cursor: not-allowed;
23623
- background-color: var(--background-light-grey);
23624
- }
23625
- .required label > span::after {
23626
- content: "*";
23627
- padding-left: 0.125em;
23628
- }
23629
- .icon-left input,
23630
- .icon-left select {
23631
- padding-left: 2em;
23632
- }
23633
- .icon-right input,
23634
- .icon-right select {
23635
- padding-right: 2em;
23636
24006
  }
23637
24007
  select[multiple],
23638
24008
  textarea {
23639
24009
  overflow: auto;
23640
24010
  }
23641
- textarea {
23642
- display: block;
23643
- }
23644
24011
  select option {
23645
24012
  margin: 1px 0;
23646
24013
  padding: 0.5em;
@@ -23660,56 +24027,54 @@ const MAPZ = KoliBri.createTheme("mapz", {
23660
24027
  "KOL-BUTTON-GROUP": `kol-button-group-wc {
23661
24028
  gap: 0.25em;
23662
24029
  }`,
23663
- "KOL-INPUT-PASSWORD": `:host {
23664
- --kolibri-spacing: 0.25rem;
24030
+ "KOL-INPUT-PASSWORD": `input,
24031
+ select,
24032
+ textarea {
24033
+ border: none;
23665
24034
  }
23666
- kol-input {
23667
- display: grid;
23668
- padding: 0;
23669
- margin: 0;
24035
+ input[type="color"] {
24036
+ border: none;
24037
+ min-height: 40px !important;
23670
24038
  }
23671
- input:focus,
23672
- input:hover,
23673
- select:focus,
23674
- select:hover,
23675
- textarea:focus,
23676
- textarea:hover {
23677
- border-color: var(--kolibri-color-secondary);
24039
+ input[type="color"],
24040
+ input[type="file"] {
24041
+ background-color: transparent;
24042
+ }
24043
+ kol-input {
24044
+ gap: var(--spacing);
23678
24045
  }
23679
24046
  kol-input > label {
23680
24047
  order: 1;
23681
- }
23682
- kol-input > label > span {
23683
24048
  color: var(--default-letter);
23684
- font-size: 0.875rem;
23685
- line-height: 1.5rem;
23686
24049
  }
23687
- kol-input > div.input {
23688
- background-color: white;
24050
+ kol-input > .input {
24051
+ border-color: var(--kolibri-border-color);
23689
24052
  border-radius: 0.25rem;
23690
- display: block;
24053
+ border-style: solid;
24054
+ border-width: 2px;
23691
24055
  order: 2;
23692
24056
  }
23693
- kol-input > kol-alert.error {
24057
+ kol-input:hover > .input {
24058
+ border-color: var(--kolibri-color-secondary);
24059
+ }
24060
+ kol-input > .input > kol-icon:first-child {
24061
+ margin-left: 0.75em;
24062
+ }
24063
+ kol-input > .input > kol-icon:last-child {
24064
+ margin-right: 0.75em;
24065
+ }
24066
+ kol-input > .error {
23694
24067
  order: 3;
23695
24068
  }
24069
+ kol-input > .hint {
24070
+ order: 4;
24071
+ font-size: 0.875em;
24072
+ }
23696
24073
  input,
23697
24074
  select,
23698
24075
  textarea {
23699
- font-family: var(--font-family);
23700
- background-color: transparent;
23701
- box-sizing: border-box;
23702
- font-size: 1rem;
23703
- display: inline-flex;
23704
- line-height: 1.5em;
23705
24076
  color: var(--default-letter);
23706
- border-color: var(--kolibri-border-color);
23707
- border-width: 2px;
23708
- border-style: solid;
23709
24077
  padding: 0.5em 0.75em;
23710
- border-radius: 0.25rem;
23711
- overflow: hidden;
23712
- width: 100%;
23713
24078
  }
23714
24079
  input:not([type="range"]),
23715
24080
  select:not([multiple]) {
@@ -23723,27 +24088,11 @@ const MAPZ = KoliBri.createTheme("mapz", {
23723
24088
  }
23724
24089
  input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
23725
24090
  cursor: not-allowed;
23726
- background-color: var(--background-light-grey);
23727
- }
23728
- .required label > span::after {
23729
- content: "*";
23730
- padding-left: 0.125em;
23731
- }
23732
- .icon-left input,
23733
- .icon-left select {
23734
- padding-left: 2em;
23735
- }
23736
- .icon-right input,
23737
- .icon-right select {
23738
- padding-right: 2em;
23739
24091
  }
23740
24092
  select[multiple],
23741
24093
  textarea {
23742
24094
  overflow: auto;
23743
24095
  }
23744
- textarea {
23745
- display: block;
23746
- }
23747
24096
  select option {
23748
24097
  margin: 1px 0;
23749
24098
  padding: 0.5em;
@@ -23760,53 +24109,54 @@ const MAPZ = KoliBri.createTheme("mapz", {
23760
24109
  background-color: var(--kolibri-color-primary);
23761
24110
  color: white;
23762
24111
  }`,
23763
- "KOL-INPUT-NUMBER": `kol-input {
23764
- display: grid;
23765
- padding: 0;
23766
- margin: 0;
24112
+ "KOL-INPUT-NUMBER": `input,
24113
+ select,
24114
+ textarea {
24115
+ border: none;
23767
24116
  }
23768
- input:focus,
23769
- input:hover,
23770
- select:focus,
23771
- select:hover,
23772
- textarea:focus,
23773
- textarea:hover {
23774
- border-color: var(--kolibri-color-secondary);
24117
+ input[type="color"] {
24118
+ border: none;
24119
+ min-height: 40px !important;
24120
+ }
24121
+ input[type="color"],
24122
+ input[type="file"] {
24123
+ background-color: transparent;
24124
+ }
24125
+ kol-input {
24126
+ gap: var(--spacing);
23775
24127
  }
23776
24128
  kol-input > label {
23777
24129
  order: 1;
23778
- }
23779
- kol-input > label > span {
23780
24130
  color: var(--default-letter);
23781
- font-size: 0.875rem;
23782
- line-height: 1.5rem;
23783
24131
  }
23784
- kol-input > div.input {
23785
- background-color: white;
24132
+ kol-input > .input {
24133
+ border-color: var(--kolibri-border-color);
23786
24134
  border-radius: 0.25rem;
23787
- display: block;
24135
+ border-style: solid;
24136
+ border-width: 2px;
23788
24137
  order: 2;
23789
24138
  }
23790
- kol-input > kol-alert.error {
24139
+ kol-input:hover > .input {
24140
+ border-color: var(--kolibri-color-secondary);
24141
+ }
24142
+ kol-input > .input > kol-icon:first-child {
24143
+ margin-left: 0.75em;
24144
+ }
24145
+ kol-input > .input > kol-icon:last-child {
24146
+ margin-right: 0.75em;
24147
+ }
24148
+ kol-input > .error {
23791
24149
  order: 3;
23792
24150
  }
24151
+ kol-input > .hint {
24152
+ order: 4;
24153
+ font-size: 0.875em;
24154
+ }
23793
24155
  input,
23794
24156
  select,
23795
24157
  textarea {
23796
- font-family: var(--font-family);
23797
- background-color: transparent;
23798
- box-sizing: border-box;
23799
- font-size: 1rem;
23800
- display: inline-flex;
23801
- line-height: 1.5em;
23802
24158
  color: var(--default-letter);
23803
- border-color: var(--kolibri-border-color);
23804
- border-width: 2px;
23805
- border-style: solid;
23806
24159
  padding: 0.5em 0.75em;
23807
- border-radius: 0.25rem;
23808
- overflow: hidden;
23809
- width: 100%;
23810
24160
  }
23811
24161
  input:not([type="range"]),
23812
24162
  select:not([multiple]) {
@@ -23820,27 +24170,11 @@ const MAPZ = KoliBri.createTheme("mapz", {
23820
24170
  }
23821
24171
  input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
23822
24172
  cursor: not-allowed;
23823
- background-color: var(--background-light-grey);
23824
- }
23825
- .required label > span::after {
23826
- content: "*";
23827
- padding-left: 0.125em;
23828
- }
23829
- .icon-left input,
23830
- .icon-left select {
23831
- padding-left: 2em;
23832
- }
23833
- .icon-right input,
23834
- .icon-right select {
23835
- padding-right: 2em;
23836
24173
  }
23837
24174
  select[multiple],
23838
24175
  textarea {
23839
24176
  overflow: auto;
23840
24177
  }
23841
- textarea {
23842
- display: block;
23843
- }
23844
24178
  select option {
23845
24179
  margin: 1px 0;
23846
24180
  padding: 0.5em;
@@ -23857,53 +24191,54 @@ const MAPZ = KoliBri.createTheme("mapz", {
23857
24191
  background-color: var(--kolibri-color-primary);
23858
24192
  color: white;
23859
24193
  }`,
23860
- "KOL-INPUT-EMAIL": `kol-input {
23861
- display: grid;
23862
- padding: 0;
23863
- margin: 0;
24194
+ "KOL-INPUT-EMAIL": `input,
24195
+ select,
24196
+ textarea {
24197
+ border: none;
23864
24198
  }
23865
- input:focus,
23866
- input:hover,
23867
- select:focus,
23868
- select:hover,
23869
- textarea:focus,
23870
- textarea:hover {
23871
- border-color: var(--kolibri-color-secondary);
24199
+ input[type="color"] {
24200
+ border: none;
24201
+ min-height: 40px !important;
24202
+ }
24203
+ input[type="color"],
24204
+ input[type="file"] {
24205
+ background-color: transparent;
24206
+ }
24207
+ kol-input {
24208
+ gap: var(--spacing);
23872
24209
  }
23873
24210
  kol-input > label {
23874
24211
  order: 1;
23875
- }
23876
- kol-input > label > span {
23877
24212
  color: var(--default-letter);
23878
- font-size: 0.875rem;
23879
- line-height: 1.5rem;
23880
24213
  }
23881
- kol-input > div.input {
23882
- background-color: white;
24214
+ kol-input > .input {
24215
+ border-color: var(--kolibri-border-color);
23883
24216
  border-radius: 0.25rem;
23884
- display: block;
24217
+ border-style: solid;
24218
+ border-width: 2px;
23885
24219
  order: 2;
23886
24220
  }
23887
- kol-input > kol-alert.error {
24221
+ kol-input:hover > .input {
24222
+ border-color: var(--kolibri-color-secondary);
24223
+ }
24224
+ kol-input > .input > kol-icon:first-child {
24225
+ margin-left: 0.75em;
24226
+ }
24227
+ kol-input > .input > kol-icon:last-child {
24228
+ margin-right: 0.75em;
24229
+ }
24230
+ kol-input > .error {
23888
24231
  order: 3;
23889
24232
  }
24233
+ kol-input > .hint {
24234
+ order: 4;
24235
+ font-size: 0.875em;
24236
+ }
23890
24237
  input,
23891
24238
  select,
23892
24239
  textarea {
23893
- font-family: var(--font-family);
23894
- background-color: transparent;
23895
- box-sizing: border-box;
23896
- font-size: 1rem;
23897
- display: inline-flex;
23898
- line-height: 1.5em;
23899
24240
  color: var(--default-letter);
23900
- border-color: var(--kolibri-border-color);
23901
- border-width: 2px;
23902
- border-style: solid;
23903
24241
  padding: 0.5em 0.75em;
23904
- border-radius: 0.25rem;
23905
- overflow: hidden;
23906
- width: 100%;
23907
24242
  }
23908
24243
  input:not([type="range"]),
23909
24244
  select:not([multiple]) {
@@ -23917,27 +24252,11 @@ const MAPZ = KoliBri.createTheme("mapz", {
23917
24252
  }
23918
24253
  input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
23919
24254
  cursor: not-allowed;
23920
- background-color: var(--background-light-grey);
23921
- }
23922
- .required label > span::after {
23923
- content: "*";
23924
- padding-left: 0.125em;
23925
- }
23926
- .icon-left input,
23927
- .icon-left select {
23928
- padding-left: 2em;
23929
- }
23930
- .icon-right input,
23931
- .icon-right select {
23932
- padding-right: 2em;
23933
24255
  }
23934
24256
  select[multiple],
23935
24257
  textarea {
23936
24258
  overflow: auto;
23937
24259
  }
23938
- textarea {
23939
- display: block;
23940
- }
23941
24260
  select option {
23942
24261
  margin: 1px 0;
23943
24262
  padding: 0.5em;
@@ -23954,53 +24273,54 @@ const MAPZ = KoliBri.createTheme("mapz", {
23954
24273
  background-color: var(--kolibri-color-primary);
23955
24274
  color: white;
23956
24275
  }`,
23957
- "KOL-INPUT-FILE": `kol-input {
23958
- display: grid;
23959
- padding: 0;
23960
- margin: 0;
24276
+ "KOL-INPUT-FILE": `input,
24277
+ select,
24278
+ textarea {
24279
+ border: none;
23961
24280
  }
23962
- input:focus,
23963
- input:hover,
23964
- select:focus,
23965
- select:hover,
23966
- textarea:focus,
23967
- textarea:hover {
23968
- border-color: var(--kolibri-color-secondary);
24281
+ input[type="color"] {
24282
+ border: none;
24283
+ min-height: 40px !important;
24284
+ }
24285
+ input[type="color"],
24286
+ input[type="file"] {
24287
+ background-color: transparent;
24288
+ }
24289
+ kol-input {
24290
+ gap: var(--spacing);
23969
24291
  }
23970
24292
  kol-input > label {
23971
24293
  order: 1;
23972
- }
23973
- kol-input > label > span {
23974
24294
  color: var(--default-letter);
23975
- font-size: 0.875rem;
23976
- line-height: 1.5rem;
23977
24295
  }
23978
- kol-input > div.input {
23979
- background-color: white;
24296
+ kol-input > .input {
24297
+ border-color: var(--kolibri-border-color);
23980
24298
  border-radius: 0.25rem;
23981
- display: block;
24299
+ border-style: solid;
24300
+ border-width: 2px;
23982
24301
  order: 2;
23983
24302
  }
23984
- kol-input > kol-alert.error {
24303
+ kol-input:hover > .input {
24304
+ border-color: var(--kolibri-color-secondary);
24305
+ }
24306
+ kol-input > .input > kol-icon:first-child {
24307
+ margin-left: 0.75em;
24308
+ }
24309
+ kol-input > .input > kol-icon:last-child {
24310
+ margin-right: 0.75em;
24311
+ }
24312
+ kol-input > .error {
23985
24313
  order: 3;
23986
24314
  }
24315
+ kol-input > .hint {
24316
+ order: 4;
24317
+ font-size: 0.875em;
24318
+ }
23987
24319
  input,
23988
24320
  select,
23989
24321
  textarea {
23990
- font-family: var(--font-family);
23991
- background-color: transparent;
23992
- box-sizing: border-box;
23993
- font-size: 1rem;
23994
- display: inline-flex;
23995
- line-height: 1.5em;
23996
24322
  color: var(--default-letter);
23997
- border-color: var(--kolibri-border-color);
23998
- border-width: 2px;
23999
- border-style: solid;
24000
24323
  padding: 0.5em 0.75em;
24001
- border-radius: 0.25rem;
24002
- overflow: hidden;
24003
- width: 100%;
24004
24324
  }
24005
24325
  input:not([type="range"]),
24006
24326
  select:not([multiple]) {
@@ -24014,27 +24334,11 @@ const MAPZ = KoliBri.createTheme("mapz", {
24014
24334
  }
24015
24335
  input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
24016
24336
  cursor: not-allowed;
24017
- background-color: var(--background-light-grey);
24018
- }
24019
- .required label > span::after {
24020
- content: "*";
24021
- padding-left: 0.125em;
24022
- }
24023
- .icon-left input,
24024
- .icon-left select {
24025
- padding-left: 2em;
24026
- }
24027
- .icon-right input,
24028
- .icon-right select {
24029
- padding-right: 2em;
24030
24337
  }
24031
24338
  select[multiple],
24032
24339
  textarea {
24033
24340
  overflow: auto;
24034
24341
  }
24035
- textarea {
24036
- display: block;
24037
- }
24038
24342
  select option {
24039
24343
  margin: 1px 0;
24040
24344
  padding: 0.5em;
@@ -24051,53 +24355,54 @@ const MAPZ = KoliBri.createTheme("mapz", {
24051
24355
  background-color: var(--kolibri-color-primary);
24052
24356
  color: white;
24053
24357
  }`,
24054
- "KOL-TEXTAREA": `kol-input {
24055
- display: grid;
24056
- padding: 0;
24057
- margin: 0;
24358
+ "KOL-TEXTAREA": `input,
24359
+ select,
24360
+ textarea {
24361
+ border: none;
24058
24362
  }
24059
- input:focus,
24060
- input:hover,
24061
- select:focus,
24062
- select:hover,
24063
- textarea:focus,
24064
- textarea:hover {
24065
- border-color: var(--kolibri-color-secondary);
24363
+ input[type="color"] {
24364
+ border: none;
24365
+ min-height: 40px !important;
24366
+ }
24367
+ input[type="color"],
24368
+ input[type="file"] {
24369
+ background-color: transparent;
24370
+ }
24371
+ kol-input {
24372
+ gap: var(--spacing);
24066
24373
  }
24067
24374
  kol-input > label {
24068
24375
  order: 1;
24069
- }
24070
- kol-input > label > span {
24071
24376
  color: var(--default-letter);
24072
- font-size: 0.875rem;
24073
- line-height: 1.5rem;
24074
24377
  }
24075
- kol-input > div.input {
24076
- background-color: white;
24378
+ kol-input > .input {
24379
+ border-color: var(--kolibri-border-color);
24077
24380
  border-radius: 0.25rem;
24078
- display: block;
24381
+ border-style: solid;
24382
+ border-width: 2px;
24079
24383
  order: 2;
24080
24384
  }
24081
- kol-input > kol-alert.error {
24385
+ kol-input:hover > .input {
24386
+ border-color: var(--kolibri-color-secondary);
24387
+ }
24388
+ kol-input > .input > kol-icon:first-child {
24389
+ margin-left: 0.75em;
24390
+ }
24391
+ kol-input > .input > kol-icon:last-child {
24392
+ margin-right: 0.75em;
24393
+ }
24394
+ kol-input > .error {
24082
24395
  order: 3;
24083
24396
  }
24397
+ kol-input > .hint {
24398
+ order: 4;
24399
+ font-size: 0.875em;
24400
+ }
24084
24401
  input,
24085
24402
  select,
24086
24403
  textarea {
24087
- font-family: var(--font-family);
24088
- background-color: transparent;
24089
- box-sizing: border-box;
24090
- font-size: 1rem;
24091
- display: inline-flex;
24092
- line-height: 1.5em;
24093
24404
  color: var(--default-letter);
24094
- border-color: var(--kolibri-border-color);
24095
- border-width: 2px;
24096
- border-style: solid;
24097
24405
  padding: 0.5em 0.75em;
24098
- border-radius: 0.25rem;
24099
- overflow: hidden;
24100
- width: 100%;
24101
24406
  }
24102
24407
  input:not([type="range"]),
24103
24408
  select:not([multiple]) {
@@ -24111,27 +24416,11 @@ const MAPZ = KoliBri.createTheme("mapz", {
24111
24416
  }
24112
24417
  input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
24113
24418
  cursor: not-allowed;
24114
- background-color: var(--background-light-grey);
24115
- }
24116
- .required label > span::after {
24117
- content: "*";
24118
- padding-left: 0.125em;
24119
- }
24120
- .icon-left input,
24121
- .icon-left select {
24122
- padding-left: 2em;
24123
- }
24124
- .icon-right input,
24125
- .icon-right select {
24126
- padding-right: 2em;
24127
24419
  }
24128
24420
  select[multiple],
24129
24421
  textarea {
24130
24422
  overflow: auto;
24131
24423
  }
24132
- textarea {
24133
- display: block;
24134
- }
24135
24424
  select option {
24136
24425
  margin: 1px 0;
24137
24426
  padding: 0.5em;
@@ -24376,18 +24665,7 @@ const MAPZ = KoliBri.createTheme("mapz", {
24376
24665
  height: calc(6 * var(--spacing));
24377
24666
  min-width: calc(6 * var(--spacing));
24378
24667
  width: calc(6 * var(--spacing));
24379
- }
24380
- fieldset div input[type="radio"]:before {
24381
- content: "";
24382
- cursor: pointer;
24383
- left: calc(1.5 * var(--spacing) - 2px);
24384
- top: calc(1.5 * var(--spacing) - 2px);
24385
- position: relative;
24386
- border-radius: 100%;
24387
- display: block;
24388
- height: calc(3 * var(--spacing));
24389
- width: calc(3 * var(--spacing));
24390
- }
24668
+ } /* fieldset div input[type="radio"]:before {content: "";cursor: pointer;left: calc(1.5 * var(--spacing) - 2px);top: calc(1.5 * var(--spacing) - 2px);position: relative;border-radius: 100%;display: block;height: calc(3 * var(--spacing));width: calc(3 * var(--spacing));}*/
24391
24669
  fieldset div input[type="radio"]:checked:before {
24392
24670
  box-shadow: 0 0 0.1rem black;
24393
24671
  background-color: var(--kolibri-color-primary);
@@ -24557,53 +24835,54 @@ const MAPZ = KoliBri.createTheme("mapz", {
24557
24835
  stroke: var(--kolibri-color-normal);
24558
24836
  fill: transparent;
24559
24837
  }`,
24560
- "KOL-SELECT": `kol-input {
24561
- display: grid;
24562
- padding: 0;
24563
- margin: 0;
24838
+ "KOL-SELECT": `input,
24839
+ select,
24840
+ textarea {
24841
+ border: none;
24564
24842
  }
24565
- input:focus,
24566
- input:hover,
24567
- select:focus,
24568
- select:hover,
24569
- textarea:focus,
24570
- textarea:hover {
24571
- border-color: var(--kolibri-color-secondary);
24843
+ input[type="color"] {
24844
+ border: none;
24845
+ min-height: 40px !important;
24846
+ }
24847
+ input[type="color"],
24848
+ input[type="file"] {
24849
+ background-color: transparent;
24850
+ }
24851
+ kol-input {
24852
+ gap: var(--spacing);
24572
24853
  }
24573
24854
  kol-input > label {
24574
24855
  order: 1;
24575
- }
24576
- kol-input > label > span {
24577
24856
  color: var(--default-letter);
24578
- font-size: 0.875rem;
24579
- line-height: 1.5rem;
24580
24857
  }
24581
- kol-input > div.input {
24582
- background-color: white;
24858
+ kol-input > .input {
24859
+ border-color: var(--kolibri-border-color);
24583
24860
  border-radius: 0.25rem;
24584
- display: block;
24861
+ border-style: solid;
24862
+ border-width: 2px;
24585
24863
  order: 2;
24586
24864
  }
24587
- kol-input > kol-alert.error {
24865
+ kol-input:hover > .input {
24866
+ border-color: var(--kolibri-color-secondary);
24867
+ }
24868
+ kol-input > .input > kol-icon:first-child {
24869
+ margin-left: 0.75em;
24870
+ }
24871
+ kol-input > .input > kol-icon:last-child {
24872
+ margin-right: 0.75em;
24873
+ }
24874
+ kol-input > .error {
24588
24875
  order: 3;
24589
24876
  }
24877
+ kol-input > .hint {
24878
+ order: 4;
24879
+ font-size: 0.875em;
24880
+ }
24590
24881
  input,
24591
24882
  select,
24592
24883
  textarea {
24593
- font-family: var(--font-family);
24594
- background-color: transparent;
24595
- box-sizing: border-box;
24596
- font-size: 1rem;
24597
- display: inline-flex;
24598
- line-height: 1.5em;
24599
24884
  color: var(--default-letter);
24600
- border-color: var(--kolibri-border-color);
24601
- border-width: 2px;
24602
- border-style: solid;
24603
24885
  padding: 0.5em 0.75em;
24604
- border-radius: 0.25rem;
24605
- overflow: hidden;
24606
- width: 100%;
24607
24886
  }
24608
24887
  input:not([type="range"]),
24609
24888
  select:not([multiple]) {
@@ -24617,27 +24896,11 @@ const MAPZ = KoliBri.createTheme("mapz", {
24617
24896
  }
24618
24897
  input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
24619
24898
  cursor: not-allowed;
24620
- background-color: var(--background-light-grey);
24621
- }
24622
- .required label > span::after {
24623
- content: "*";
24624
- padding-left: 0.125em;
24625
- }
24626
- .icon-left input,
24627
- .icon-left select {
24628
- padding-left: 2em;
24629
- }
24630
- .icon-right input,
24631
- .icon-right select {
24632
- padding-right: 2em;
24633
24899
  }
24634
24900
  select[multiple],
24635
24901
  textarea {
24636
24902
  overflow: auto;
24637
24903
  }
24638
- textarea {
24639
- display: block;
24640
- }
24641
24904
  select option {
24642
24905
  margin: 1px 0;
24643
24906
  padding: 0.5em;
@@ -24654,53 +24917,54 @@ const MAPZ = KoliBri.createTheme("mapz", {
24654
24917
  background-color: var(--kolibri-color-primary);
24655
24918
  color: white;
24656
24919
  }`,
24657
- "KOL-INPUT-COLOR": `kol-input {
24658
- display: grid;
24659
- padding: 0;
24660
- margin: 0;
24920
+ "KOL-INPUT-COLOR": `input,
24921
+ select,
24922
+ textarea {
24923
+ border: none;
24661
24924
  }
24662
- input:focus,
24663
- input:hover,
24664
- select:focus,
24665
- select:hover,
24666
- textarea:focus,
24667
- textarea:hover {
24668
- border-color: var(--kolibri-color-secondary);
24925
+ input[type="color"] {
24926
+ border: none;
24927
+ min-height: 40px !important;
24928
+ }
24929
+ input[type="color"],
24930
+ input[type="file"] {
24931
+ background-color: transparent;
24932
+ }
24933
+ kol-input {
24934
+ gap: var(--spacing);
24669
24935
  }
24670
24936
  kol-input > label {
24671
24937
  order: 1;
24672
- }
24673
- kol-input > label > span {
24674
24938
  color: var(--default-letter);
24675
- font-size: 0.875rem;
24676
- line-height: 1.5rem;
24677
24939
  }
24678
- kol-input > div.input {
24679
- background-color: white;
24940
+ kol-input > .input {
24941
+ border-color: var(--kolibri-border-color);
24680
24942
  border-radius: 0.25rem;
24681
- display: block;
24943
+ border-style: solid;
24944
+ border-width: 2px;
24682
24945
  order: 2;
24683
24946
  }
24684
- kol-input > kol-alert.error {
24947
+ kol-input:hover > .input {
24948
+ border-color: var(--kolibri-color-secondary);
24949
+ }
24950
+ kol-input > .input > kol-icon:first-child {
24951
+ margin-left: 0.75em;
24952
+ }
24953
+ kol-input > .input > kol-icon:last-child {
24954
+ margin-right: 0.75em;
24955
+ }
24956
+ kol-input > .error {
24685
24957
  order: 3;
24686
24958
  }
24959
+ kol-input > .hint {
24960
+ order: 4;
24961
+ font-size: 0.875em;
24962
+ }
24687
24963
  input,
24688
24964
  select,
24689
24965
  textarea {
24690
- font-family: var(--font-family);
24691
- background-color: transparent;
24692
- box-sizing: border-box;
24693
- font-size: 1rem;
24694
- display: inline-flex;
24695
- line-height: 1.5em;
24696
24966
  color: var(--default-letter);
24697
- border-color: var(--kolibri-border-color);
24698
- border-width: 2px;
24699
- border-style: solid;
24700
24967
  padding: 0.5em 0.75em;
24701
- border-radius: 0.25rem;
24702
- overflow: hidden;
24703
- width: 100%;
24704
24968
  }
24705
24969
  input:not([type="range"]),
24706
24970
  select:not([multiple]) {
@@ -24714,27 +24978,11 @@ const MAPZ = KoliBri.createTheme("mapz", {
24714
24978
  }
24715
24979
  input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
24716
24980
  cursor: not-allowed;
24717
- background-color: var(--background-light-grey);
24718
- }
24719
- .required label > span::after {
24720
- content: "*";
24721
- padding-left: 0.125em;
24722
- }
24723
- .icon-left input,
24724
- .icon-left select {
24725
- padding-left: 2em;
24726
- }
24727
- .icon-right input,
24728
- .icon-right select {
24729
- padding-right: 2em;
24730
24981
  }
24731
24982
  select[multiple],
24732
24983
  textarea {
24733
24984
  overflow: auto;
24734
24985
  }
24735
- textarea {
24736
- display: block;
24737
- }
24738
24986
  select option {
24739
24987
  margin: 1px 0;
24740
24988
  padding: 0.5em;
@@ -25093,9 +25341,10 @@ const MAPZ = KoliBri.createTheme("mapz", {
25093
25341
  z-index: 200;
25094
25342
  }
25095
25343
  :host > div > kol-alert {
25344
+ background-color: white;
25345
+ border-radius: var(--kolibri-border-radius);
25096
25346
  display: block;
25097
- margin: auto;
25098
- padding: 1rem;
25347
+ margin: 1rem auto;
25099
25348
  max-width: 750px;
25100
25349
  }
25101
25350
  :host > div > kol-button-wc {
@@ -32231,6 +32480,88 @@ const MAPZ = KoliBri.createTheme("mapz", {
32231
32480
  u+f0ec, u+f10a-f10b, u+f123, u+f13e, u+f148-f149, u+f14c, u+f156, u+f15e,
32232
32481
  u+f160-f161, u+f163, u+f175-f178, u+f195, u+f1f8, u+f219, u+f250, u+f252,
32233
32482
  u+f27a;
32483
+ }`,
32484
+ "KOL-INPUT-RANGE": `input,
32485
+ select,
32486
+ textarea {
32487
+ border: none;
32488
+ }
32489
+ input[type="color"] {
32490
+ border: none;
32491
+ min-height: 40px !important;
32492
+ }
32493
+ input[type="color"],
32494
+ input[type="file"] {
32495
+ background-color: transparent;
32496
+ }
32497
+ kol-input {
32498
+ gap: var(--spacing);
32499
+ }
32500
+ kol-input > label {
32501
+ order: 1;
32502
+ color: var(--default-letter);
32503
+ }
32504
+ kol-input > .input {
32505
+ border-color: var(--kolibri-border-color);
32506
+ border-radius: 0.25rem;
32507
+ border-style: solid;
32508
+ border-width: 2px;
32509
+ order: 2;
32510
+ }
32511
+ kol-input:hover > .input {
32512
+ border-color: var(--kolibri-color-secondary);
32513
+ }
32514
+ kol-input > .input > kol-icon:first-child {
32515
+ margin-left: 0.75em;
32516
+ }
32517
+ kol-input > .input > kol-icon:last-child {
32518
+ margin-right: 0.75em;
32519
+ }
32520
+ kol-input > .error {
32521
+ order: 3;
32522
+ }
32523
+ kol-input > .hint {
32524
+ order: 4;
32525
+ font-size: 0.875em;
32526
+ }
32527
+ input,
32528
+ select,
32529
+ textarea {
32530
+ color: var(--default-letter);
32531
+ padding: 0.5em 0.75em;
32532
+ }
32533
+ input:not([type="range"]),
32534
+ select:not([multiple]) {
32535
+ height: 2.75em;
32536
+ }
32537
+ textarea {
32538
+ display: inherit;
32539
+ }
32540
+ input::placeholder {
32541
+ color: var(--default-border-hover);
32542
+ }
32543
+ input:not([type="color"]):read-only,input:disabled,/* select:read-only, */select:disabled,textarea:read-only,textarea:disabled {
32544
+ cursor: not-allowed;
32545
+ }
32546
+ select[multiple],
32547
+ textarea {
32548
+ overflow: auto;
32549
+ }
32550
+ select option {
32551
+ margin: 1px 0;
32552
+ padding: 0.5em;
32553
+ border-radius: 0.25em;
32554
+ cursor: pointer;
32555
+ }
32556
+ select option:disabled {
32557
+ cursor: not-allowed;
32558
+ }
32559
+ option:active:not(:disabled),
32560
+ option:checked:not(:disabled),
32561
+ option:focus:not(:disabled),
32562
+ option:hover:not(:disabled) {
32563
+ background-color: var(--kolibri-color-primary);
32564
+ color: white;
32234
32565
  }`
32235
32566
  });
32236
32567