@public-ui/theme-default 2.0.0-rc.0 → 2.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +79 -123
- package/dist/index.d.ts +0 -2
- package/dist/index.mjs +79 -123
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -301,7 +301,7 @@ var loglevel = {exports: {}};
|
|
|
301
301
|
}));
|
|
302
302
|
} (loglevel));
|
|
303
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:{};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
|
|
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:{};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 a=getCssStyle(s,"PROPERTIES"),n=getCssStyle(s,"GLOBAL"),l=getCssStyle(s,e.tagName);!1===CSS_PROPERTIES_REGISTERED.has(s)&&extractProperties(s,n);const i=[a,n,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
305
|
|
|
306
306
|
var KeyEnum = /* @__PURE__ */ ((KeyEnum2) => {
|
|
307
307
|
KeyEnum2[KeyEnum2["error"] = 0] = "error";
|
|
@@ -366,29 +366,28 @@ var TagEnum = /* @__PURE__ */ ((TagEnum2) => {
|
|
|
366
366
|
TagEnum2[TagEnum2["modal"] = 30] = "modal";
|
|
367
367
|
TagEnum2[TagEnum2["nav"] = 31] = "nav";
|
|
368
368
|
TagEnum2[TagEnum2["pagination"] = 32] = "pagination";
|
|
369
|
-
TagEnum2[TagEnum2["
|
|
370
|
-
TagEnum2[TagEnum2["
|
|
371
|
-
TagEnum2[TagEnum2["
|
|
372
|
-
TagEnum2[TagEnum2["
|
|
373
|
-
TagEnum2[TagEnum2["
|
|
374
|
-
TagEnum2[TagEnum2["
|
|
375
|
-
TagEnum2[TagEnum2["
|
|
376
|
-
TagEnum2[TagEnum2["
|
|
377
|
-
TagEnum2[TagEnum2["
|
|
378
|
-
TagEnum2[TagEnum2["
|
|
379
|
-
TagEnum2[TagEnum2["
|
|
380
|
-
TagEnum2[TagEnum2["
|
|
381
|
-
TagEnum2[TagEnum2["
|
|
382
|
-
TagEnum2[TagEnum2["toolbar"] = 46] = "toolbar";
|
|
383
|
-
TagEnum2[TagEnum2["tooltip"] = 47] = "tooltip";
|
|
369
|
+
TagEnum2[TagEnum2["progress"] = 33] = "progress";
|
|
370
|
+
TagEnum2[TagEnum2["select"] = 34] = "select";
|
|
371
|
+
TagEnum2[TagEnum2["separator"] = 35] = "separator";
|
|
372
|
+
TagEnum2[TagEnum2["skip-nav"] = 36] = "skip-nav";
|
|
373
|
+
TagEnum2[TagEnum2["spin"] = 37] = "spin";
|
|
374
|
+
TagEnum2[TagEnum2["split-button"] = 38] = "split-button";
|
|
375
|
+
TagEnum2[TagEnum2["symbol"] = 39] = "symbol";
|
|
376
|
+
TagEnum2[TagEnum2["table"] = 40] = "table";
|
|
377
|
+
TagEnum2[TagEnum2["tabs"] = 41] = "tabs";
|
|
378
|
+
TagEnum2[TagEnum2["textarea"] = 42] = "textarea";
|
|
379
|
+
TagEnum2[TagEnum2["toast-container"] = 43] = "toast-container";
|
|
380
|
+
TagEnum2[TagEnum2["toolbar"] = 44] = "toolbar";
|
|
381
|
+
TagEnum2[TagEnum2["tooltip"] = 45] = "tooltip";
|
|
384
382
|
return TagEnum2;
|
|
385
383
|
})(TagEnum || {});
|
|
386
384
|
|
|
387
385
|
const KoliBri = new Theme("kol", KeyEnum, TagEnum);
|
|
388
386
|
|
|
389
|
-
const
|
|
387
|
+
const cssWithCustomLayerName = (layerName) => (input) => `@layer ${layerName} { ${input.join(``)} }`;
|
|
388
|
+
const css = (input) => cssWithCustomLayerName("kol-theme-component")(input);
|
|
390
389
|
const DEFAULT = KoliBri.createTheme("default", {
|
|
391
|
-
GLOBAL:
|
|
390
|
+
GLOBAL: cssWithCustomLayerName("kol-theme-global")`
|
|
392
391
|
:host {
|
|
393
392
|
--border-radius: var(--kolibri-border-radius, 5px);
|
|
394
393
|
--font-family: var(--kolibri-font-family, BundesSans Web, Calibri, Verdana, Arial, Helvetica, sans-serif);
|
|
@@ -593,6 +592,12 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
593
592
|
background-color: transparent;
|
|
594
593
|
border-color: transparent;
|
|
595
594
|
}
|
|
595
|
+
.access-key-hint {
|
|
596
|
+
background: var(--color-mute-variant);
|
|
597
|
+
border-radius: 3px;
|
|
598
|
+
color: var(--color-text);
|
|
599
|
+
padding: 0 0.3em;
|
|
600
|
+
}
|
|
596
601
|
`,
|
|
597
602
|
"KOL-INPUT-TEXT": css`
|
|
598
603
|
kol-input {
|
|
@@ -1489,71 +1494,6 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
1489
1494
|
font-size: 1.2rem;
|
|
1490
1495
|
}
|
|
1491
1496
|
`,
|
|
1492
|
-
"KOL-SPIN": css`
|
|
1493
|
-
.spin {
|
|
1494
|
-
display: inline-block;
|
|
1495
|
-
height: 1rem;
|
|
1496
|
-
position: relative;
|
|
1497
|
-
width: 3rem;
|
|
1498
|
-
}
|
|
1499
|
-
.spin span {
|
|
1500
|
-
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
1501
|
-
border: 0.1rem solid rgb(255, 255, 255);
|
|
1502
|
-
border-radius: 50%;
|
|
1503
|
-
height: 0.8rem;
|
|
1504
|
-
width: 0.8rem;
|
|
1505
|
-
top: 0.1rem;
|
|
1506
|
-
position: absolute;
|
|
1507
|
-
}
|
|
1508
|
-
.spin span:nth-child(1) {
|
|
1509
|
-
background-color: #fc0;
|
|
1510
|
-
z-index: 0;
|
|
1511
|
-
animation: 2s ease 0s infinite normal none running spin1;
|
|
1512
|
-
left: 0.1rem;
|
|
1513
|
-
}
|
|
1514
|
-
.spin span:nth-child(2) {
|
|
1515
|
-
background-color: #f00;
|
|
1516
|
-
z-index: 1;
|
|
1517
|
-
animation: 2s ease 0s infinite normal none running spin2;
|
|
1518
|
-
left: 0.1rem;
|
|
1519
|
-
}
|
|
1520
|
-
.spin span:nth-child(3) {
|
|
1521
|
-
background-color: #000;
|
|
1522
|
-
z-index: 1;
|
|
1523
|
-
animation: 2s ease 0s infinite normal none running spin2;
|
|
1524
|
-
left: 1.1rem;
|
|
1525
|
-
}
|
|
1526
|
-
.spin span:nth-child(4) {
|
|
1527
|
-
background-color: #666;
|
|
1528
|
-
z-index: 0;
|
|
1529
|
-
animation: 2s ease 0s infinite normal none running spin3;
|
|
1530
|
-
left: 2.1rem;
|
|
1531
|
-
}
|
|
1532
|
-
@keyframes spin1 {
|
|
1533
|
-
0% {
|
|
1534
|
-
transform: scale(0);
|
|
1535
|
-
}
|
|
1536
|
-
100% {
|
|
1537
|
-
transform: scale(1);
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
@keyframes spin2 {
|
|
1541
|
-
0% {
|
|
1542
|
-
transform: translate(0px, 0px);
|
|
1543
|
-
}
|
|
1544
|
-
100% {
|
|
1545
|
-
transform: translate(1rem, 0px);
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
@keyframes spin3 {
|
|
1549
|
-
0% {
|
|
1550
|
-
transform: scale(1);
|
|
1551
|
-
}
|
|
1552
|
-
100% {
|
|
1553
|
-
transform: scale(0);
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
`,
|
|
1557
1497
|
"KOL-PROGRESS": css`
|
|
1558
1498
|
:host progress,
|
|
1559
1499
|
:host span {
|
|
@@ -1659,13 +1599,15 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
1659
1599
|
}
|
|
1660
1600
|
select option {
|
|
1661
1601
|
margin: 1px 0;
|
|
1662
|
-
padding: 0.5em;
|
|
1663
1602
|
border-radius: var(--border-radius);
|
|
1664
1603
|
cursor: pointer;
|
|
1665
1604
|
}
|
|
1666
1605
|
select option:disabled {
|
|
1667
1606
|
cursor: not-allowed;
|
|
1668
1607
|
}
|
|
1608
|
+
select:not([multiple]) option {
|
|
1609
|
+
padding: 0.5em;
|
|
1610
|
+
}
|
|
1669
1611
|
option:active:not(:disabled),
|
|
1670
1612
|
option:checked:not(:disabled),
|
|
1671
1613
|
option:focus:not(:disabled),
|
|
@@ -2240,7 +2182,7 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2240
2182
|
display: grid;
|
|
2241
2183
|
gap: 0.25em;
|
|
2242
2184
|
}
|
|
2243
|
-
|
|
2185
|
+
.radio-input-wrapper {
|
|
2244
2186
|
align-items: center;
|
|
2245
2187
|
cursor: pointer;
|
|
2246
2188
|
display: flex;
|
|
@@ -2250,16 +2192,16 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2250
2192
|
min-height: var(--a11y-min-size);
|
|
2251
2193
|
position: relative;
|
|
2252
2194
|
}
|
|
2253
|
-
|
|
2195
|
+
.radio-input-wrapper label {
|
|
2254
2196
|
cursor: pointer;
|
|
2255
2197
|
display: flex;
|
|
2256
2198
|
padding-left: calc(var(--spacing) / 2);
|
|
2257
2199
|
width: 100%;
|
|
2258
2200
|
}
|
|
2259
|
-
|
|
2201
|
+
.radio-input-wrapper label span {
|
|
2260
2202
|
margin-top: 0.125em;
|
|
2261
2203
|
}
|
|
2262
|
-
|
|
2204
|
+
.radio-input-wrapper input[type='radio'] {
|
|
2263
2205
|
appearance: none;
|
|
2264
2206
|
transition: 0.5s;
|
|
2265
2207
|
border-radius: 100%;
|
|
@@ -2267,16 +2209,16 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2267
2209
|
min-width: calc(6 * 0.25rem);
|
|
2268
2210
|
width: calc(6 * 0.25rem);
|
|
2269
2211
|
}
|
|
2270
|
-
|
|
2212
|
+
.radio-input-wrapper input[type='radio']:before {
|
|
2271
2213
|
content: '';
|
|
2272
2214
|
cursor: pointer;
|
|
2273
2215
|
border-radius: 100%;
|
|
2274
2216
|
display: block;
|
|
2275
2217
|
}
|
|
2276
|
-
|
|
2218
|
+
.radio-input-wrapper input[type='radio']:checked:before {
|
|
2277
2219
|
background-color: var(--color-primary);
|
|
2278
2220
|
}
|
|
2279
|
-
|
|
2221
|
+
.radio-input-wrapper input[type='radio']:disabled {
|
|
2280
2222
|
cursor: not-allowed;
|
|
2281
2223
|
background-color: var(--color-mute-variant);
|
|
2282
2224
|
}
|
|
@@ -2323,7 +2265,7 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2323
2265
|
fieldset .input-slot {
|
|
2324
2266
|
gap: var(--spacing);
|
|
2325
2267
|
}
|
|
2326
|
-
|
|
2268
|
+
.radio-input-wrapper label {
|
|
2327
2269
|
padding-left: 0;
|
|
2328
2270
|
}
|
|
2329
2271
|
`,
|
|
@@ -2333,8 +2275,6 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2333
2275
|
right: 1rem;
|
|
2334
2276
|
width: 440px;
|
|
2335
2277
|
}
|
|
2336
|
-
`,
|
|
2337
|
-
"KOL-TOAST": css`
|
|
2338
2278
|
.toast {
|
|
2339
2279
|
margin-top: 1rem;
|
|
2340
2280
|
}
|
|
@@ -2474,38 +2414,46 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2474
2414
|
}
|
|
2475
2415
|
`,
|
|
2476
2416
|
"KOL-PAGINATION": css`
|
|
2477
|
-
:
|
|
2478
|
-
|
|
2479
|
-
gap: 1rem;
|
|
2480
|
-
}
|
|
2481
|
-
:host .navigation-list {
|
|
2482
|
-
display: inline-flex;
|
|
2483
|
-
flex-wrap: wrap;
|
|
2484
|
-
align-items: center;
|
|
2485
|
-
gap: 0.5rem;
|
|
2417
|
+
.button:focus {
|
|
2418
|
+
outline: none;
|
|
2486
2419
|
}
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
font-family: var(--font-family);
|
|
2493
|
-
cursor: not-allowed;
|
|
2420
|
+
.button-inner {
|
|
2421
|
+
background-color: var(--color-light);
|
|
2422
|
+
border-radius: var(--border-radius);
|
|
2423
|
+
border: 1px solid var(--color-primary);
|
|
2424
|
+
color: var(--color-primary);
|
|
2494
2425
|
font-weight: 700;
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2426
|
+
min-height: var(--a11y-min-size);
|
|
2427
|
+
min-width: var(--a11y-min-size);
|
|
2428
|
+
padding: 8px;
|
|
2498
2429
|
text-align: center;
|
|
2499
|
-
width: inherit;
|
|
2500
2430
|
transition-duration: 0.5s;
|
|
2501
2431
|
transition-property: background-color, color, border-color;
|
|
2502
|
-
color: var(--color-primary);
|
|
2503
|
-
background-color: var(--color-mute-variant);
|
|
2504
2432
|
}
|
|
2505
|
-
:
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2433
|
+
.button:focus .button-inner {
|
|
2434
|
+
outline-offset: 2px;
|
|
2435
|
+
outline: 2px solid var(--color-primary-variant);
|
|
2436
|
+
transition: outline-offset 0.2s linear;
|
|
2437
|
+
}
|
|
2438
|
+
.button:is(:active, :hover):not(:disabled) .button-inner {
|
|
2439
|
+
background-color: var(--color-primary-variant);
|
|
2440
|
+
border-color: var(--color-primary-variant);
|
|
2441
|
+
box-shadow: 0 2px 8px 2px rgba(8, 35, 48, 0.24);
|
|
2442
|
+
color: var(--color-light);
|
|
2443
|
+
}
|
|
2444
|
+
.button:active .button-inner {
|
|
2445
|
+
color: var(--color-light);
|
|
2446
|
+
outline: none;
|
|
2447
|
+
}
|
|
2448
|
+
.button:disabled .button-inner {
|
|
2449
|
+
cursor: not-allowed;
|
|
2450
|
+
opacity: 0.5;
|
|
2451
|
+
}
|
|
2452
|
+
.selected .button-inner {
|
|
2453
|
+
background-color: var(--color-mute-variant);
|
|
2454
|
+
border-radius: var(--a11y-min-size);
|
|
2455
|
+
border: 0;
|
|
2456
|
+
opacity: 1 !important;
|
|
2509
2457
|
}
|
|
2510
2458
|
`,
|
|
2511
2459
|
"KOL-INPUT-RANGE": css`
|
|
@@ -2746,6 +2694,12 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2746
2694
|
left: unset;
|
|
2747
2695
|
position: unset;
|
|
2748
2696
|
}
|
|
2697
|
+
.access-key-hint {
|
|
2698
|
+
background: var(--color-mute-variant);
|
|
2699
|
+
border-radius: 3px;
|
|
2700
|
+
color: var(--color-text);
|
|
2701
|
+
padding: 0 0.3em;
|
|
2702
|
+
}
|
|
2749
2703
|
`,
|
|
2750
2704
|
"KOL-ABBR": css`
|
|
2751
2705
|
abbr {
|
|
@@ -2798,9 +2752,11 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2798
2752
|
cursor: pointer;
|
|
2799
2753
|
}
|
|
2800
2754
|
`,
|
|
2801
|
-
"KOL-SPLIT-BUTTON":
|
|
2802
|
-
|
|
2803
|
-
|
|
2755
|
+
"KOL-SPLIT-BUTTON": css`
|
|
2756
|
+
.popover {
|
|
2757
|
+
background: #fff;
|
|
2758
|
+
}
|
|
2759
|
+
`
|
|
2804
2760
|
});
|
|
2805
2761
|
|
|
2806
2762
|
exports.DEFAULT = DEFAULT;
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ declare const DEFAULT: (patch: (name: string, map: {
|
|
|
35
35
|
"KOL-MODAL"?: string | undefined;
|
|
36
36
|
"KOL-NAV"?: string | undefined;
|
|
37
37
|
"KOL-PAGINATION"?: string | undefined;
|
|
38
|
-
"KOL-POPOVER"?: string | undefined;
|
|
39
38
|
"KOL-PROGRESS"?: string | undefined;
|
|
40
39
|
"KOL-SELECT"?: string | undefined;
|
|
41
40
|
"KOL-SEPARATOR"?: string | undefined;
|
|
@@ -45,7 +44,6 @@ declare const DEFAULT: (patch: (name: string, map: {
|
|
|
45
44
|
"KOL-TABLE"?: string | undefined;
|
|
46
45
|
"KOL-TABS"?: string | undefined;
|
|
47
46
|
"KOL-TEXTAREA"?: string | undefined;
|
|
48
|
-
"KOL-TOAST"?: string | undefined;
|
|
49
47
|
"KOL-TOAST-CONTAINER"?: string | undefined;
|
|
50
48
|
"KOL-TOOLBAR"?: string | undefined;
|
|
51
49
|
"KOL-TOOLTIP"?: string | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -299,7 +299,7 @@ var loglevel = {exports: {}};
|
|
|
299
299
|
}));
|
|
300
300
|
} (loglevel));
|
|
301
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:{};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
|
|
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:{};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 a=getCssStyle(s,"PROPERTIES"),n=getCssStyle(s,"GLOBAL"),l=getCssStyle(s,e.tagName);!1===CSS_PROPERTIES_REGISTERED.has(s)&&extractProperties(s,n);const i=[a,n,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
303
|
|
|
304
304
|
var KeyEnum = /* @__PURE__ */ ((KeyEnum2) => {
|
|
305
305
|
KeyEnum2[KeyEnum2["error"] = 0] = "error";
|
|
@@ -364,29 +364,28 @@ var TagEnum = /* @__PURE__ */ ((TagEnum2) => {
|
|
|
364
364
|
TagEnum2[TagEnum2["modal"] = 30] = "modal";
|
|
365
365
|
TagEnum2[TagEnum2["nav"] = 31] = "nav";
|
|
366
366
|
TagEnum2[TagEnum2["pagination"] = 32] = "pagination";
|
|
367
|
-
TagEnum2[TagEnum2["
|
|
368
|
-
TagEnum2[TagEnum2["
|
|
369
|
-
TagEnum2[TagEnum2["
|
|
370
|
-
TagEnum2[TagEnum2["
|
|
371
|
-
TagEnum2[TagEnum2["
|
|
372
|
-
TagEnum2[TagEnum2["
|
|
373
|
-
TagEnum2[TagEnum2["
|
|
374
|
-
TagEnum2[TagEnum2["
|
|
375
|
-
TagEnum2[TagEnum2["
|
|
376
|
-
TagEnum2[TagEnum2["
|
|
377
|
-
TagEnum2[TagEnum2["
|
|
378
|
-
TagEnum2[TagEnum2["
|
|
379
|
-
TagEnum2[TagEnum2["
|
|
380
|
-
TagEnum2[TagEnum2["toolbar"] = 46] = "toolbar";
|
|
381
|
-
TagEnum2[TagEnum2["tooltip"] = 47] = "tooltip";
|
|
367
|
+
TagEnum2[TagEnum2["progress"] = 33] = "progress";
|
|
368
|
+
TagEnum2[TagEnum2["select"] = 34] = "select";
|
|
369
|
+
TagEnum2[TagEnum2["separator"] = 35] = "separator";
|
|
370
|
+
TagEnum2[TagEnum2["skip-nav"] = 36] = "skip-nav";
|
|
371
|
+
TagEnum2[TagEnum2["spin"] = 37] = "spin";
|
|
372
|
+
TagEnum2[TagEnum2["split-button"] = 38] = "split-button";
|
|
373
|
+
TagEnum2[TagEnum2["symbol"] = 39] = "symbol";
|
|
374
|
+
TagEnum2[TagEnum2["table"] = 40] = "table";
|
|
375
|
+
TagEnum2[TagEnum2["tabs"] = 41] = "tabs";
|
|
376
|
+
TagEnum2[TagEnum2["textarea"] = 42] = "textarea";
|
|
377
|
+
TagEnum2[TagEnum2["toast-container"] = 43] = "toast-container";
|
|
378
|
+
TagEnum2[TagEnum2["toolbar"] = 44] = "toolbar";
|
|
379
|
+
TagEnum2[TagEnum2["tooltip"] = 45] = "tooltip";
|
|
382
380
|
return TagEnum2;
|
|
383
381
|
})(TagEnum || {});
|
|
384
382
|
|
|
385
383
|
const KoliBri = new Theme("kol", KeyEnum, TagEnum);
|
|
386
384
|
|
|
387
|
-
const
|
|
385
|
+
const cssWithCustomLayerName = (layerName) => (input) => `@layer ${layerName} { ${input.join(``)} }`;
|
|
386
|
+
const css = (input) => cssWithCustomLayerName("kol-theme-component")(input);
|
|
388
387
|
const DEFAULT = KoliBri.createTheme("default", {
|
|
389
|
-
GLOBAL:
|
|
388
|
+
GLOBAL: cssWithCustomLayerName("kol-theme-global")`
|
|
390
389
|
:host {
|
|
391
390
|
--border-radius: var(--kolibri-border-radius, 5px);
|
|
392
391
|
--font-family: var(--kolibri-font-family, BundesSans Web, Calibri, Verdana, Arial, Helvetica, sans-serif);
|
|
@@ -591,6 +590,12 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
591
590
|
background-color: transparent;
|
|
592
591
|
border-color: transparent;
|
|
593
592
|
}
|
|
593
|
+
.access-key-hint {
|
|
594
|
+
background: var(--color-mute-variant);
|
|
595
|
+
border-radius: 3px;
|
|
596
|
+
color: var(--color-text);
|
|
597
|
+
padding: 0 0.3em;
|
|
598
|
+
}
|
|
594
599
|
`,
|
|
595
600
|
"KOL-INPUT-TEXT": css`
|
|
596
601
|
kol-input {
|
|
@@ -1487,71 +1492,6 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
1487
1492
|
font-size: 1.2rem;
|
|
1488
1493
|
}
|
|
1489
1494
|
`,
|
|
1490
|
-
"KOL-SPIN": css`
|
|
1491
|
-
.spin {
|
|
1492
|
-
display: inline-block;
|
|
1493
|
-
height: 1rem;
|
|
1494
|
-
position: relative;
|
|
1495
|
-
width: 3rem;
|
|
1496
|
-
}
|
|
1497
|
-
.spin span {
|
|
1498
|
-
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
1499
|
-
border: 0.1rem solid rgb(255, 255, 255);
|
|
1500
|
-
border-radius: 50%;
|
|
1501
|
-
height: 0.8rem;
|
|
1502
|
-
width: 0.8rem;
|
|
1503
|
-
top: 0.1rem;
|
|
1504
|
-
position: absolute;
|
|
1505
|
-
}
|
|
1506
|
-
.spin span:nth-child(1) {
|
|
1507
|
-
background-color: #fc0;
|
|
1508
|
-
z-index: 0;
|
|
1509
|
-
animation: 2s ease 0s infinite normal none running spin1;
|
|
1510
|
-
left: 0.1rem;
|
|
1511
|
-
}
|
|
1512
|
-
.spin span:nth-child(2) {
|
|
1513
|
-
background-color: #f00;
|
|
1514
|
-
z-index: 1;
|
|
1515
|
-
animation: 2s ease 0s infinite normal none running spin2;
|
|
1516
|
-
left: 0.1rem;
|
|
1517
|
-
}
|
|
1518
|
-
.spin span:nth-child(3) {
|
|
1519
|
-
background-color: #000;
|
|
1520
|
-
z-index: 1;
|
|
1521
|
-
animation: 2s ease 0s infinite normal none running spin2;
|
|
1522
|
-
left: 1.1rem;
|
|
1523
|
-
}
|
|
1524
|
-
.spin span:nth-child(4) {
|
|
1525
|
-
background-color: #666;
|
|
1526
|
-
z-index: 0;
|
|
1527
|
-
animation: 2s ease 0s infinite normal none running spin3;
|
|
1528
|
-
left: 2.1rem;
|
|
1529
|
-
}
|
|
1530
|
-
@keyframes spin1 {
|
|
1531
|
-
0% {
|
|
1532
|
-
transform: scale(0);
|
|
1533
|
-
}
|
|
1534
|
-
100% {
|
|
1535
|
-
transform: scale(1);
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
@keyframes spin2 {
|
|
1539
|
-
0% {
|
|
1540
|
-
transform: translate(0px, 0px);
|
|
1541
|
-
}
|
|
1542
|
-
100% {
|
|
1543
|
-
transform: translate(1rem, 0px);
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
@keyframes spin3 {
|
|
1547
|
-
0% {
|
|
1548
|
-
transform: scale(1);
|
|
1549
|
-
}
|
|
1550
|
-
100% {
|
|
1551
|
-
transform: scale(0);
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
`,
|
|
1555
1495
|
"KOL-PROGRESS": css`
|
|
1556
1496
|
:host progress,
|
|
1557
1497
|
:host span {
|
|
@@ -1657,13 +1597,15 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
1657
1597
|
}
|
|
1658
1598
|
select option {
|
|
1659
1599
|
margin: 1px 0;
|
|
1660
|
-
padding: 0.5em;
|
|
1661
1600
|
border-radius: var(--border-radius);
|
|
1662
1601
|
cursor: pointer;
|
|
1663
1602
|
}
|
|
1664
1603
|
select option:disabled {
|
|
1665
1604
|
cursor: not-allowed;
|
|
1666
1605
|
}
|
|
1606
|
+
select:not([multiple]) option {
|
|
1607
|
+
padding: 0.5em;
|
|
1608
|
+
}
|
|
1667
1609
|
option:active:not(:disabled),
|
|
1668
1610
|
option:checked:not(:disabled),
|
|
1669
1611
|
option:focus:not(:disabled),
|
|
@@ -2238,7 +2180,7 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2238
2180
|
display: grid;
|
|
2239
2181
|
gap: 0.25em;
|
|
2240
2182
|
}
|
|
2241
|
-
|
|
2183
|
+
.radio-input-wrapper {
|
|
2242
2184
|
align-items: center;
|
|
2243
2185
|
cursor: pointer;
|
|
2244
2186
|
display: flex;
|
|
@@ -2248,16 +2190,16 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2248
2190
|
min-height: var(--a11y-min-size);
|
|
2249
2191
|
position: relative;
|
|
2250
2192
|
}
|
|
2251
|
-
|
|
2193
|
+
.radio-input-wrapper label {
|
|
2252
2194
|
cursor: pointer;
|
|
2253
2195
|
display: flex;
|
|
2254
2196
|
padding-left: calc(var(--spacing) / 2);
|
|
2255
2197
|
width: 100%;
|
|
2256
2198
|
}
|
|
2257
|
-
|
|
2199
|
+
.radio-input-wrapper label span {
|
|
2258
2200
|
margin-top: 0.125em;
|
|
2259
2201
|
}
|
|
2260
|
-
|
|
2202
|
+
.radio-input-wrapper input[type='radio'] {
|
|
2261
2203
|
appearance: none;
|
|
2262
2204
|
transition: 0.5s;
|
|
2263
2205
|
border-radius: 100%;
|
|
@@ -2265,16 +2207,16 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2265
2207
|
min-width: calc(6 * 0.25rem);
|
|
2266
2208
|
width: calc(6 * 0.25rem);
|
|
2267
2209
|
}
|
|
2268
|
-
|
|
2210
|
+
.radio-input-wrapper input[type='radio']:before {
|
|
2269
2211
|
content: '';
|
|
2270
2212
|
cursor: pointer;
|
|
2271
2213
|
border-radius: 100%;
|
|
2272
2214
|
display: block;
|
|
2273
2215
|
}
|
|
2274
|
-
|
|
2216
|
+
.radio-input-wrapper input[type='radio']:checked:before {
|
|
2275
2217
|
background-color: var(--color-primary);
|
|
2276
2218
|
}
|
|
2277
|
-
|
|
2219
|
+
.radio-input-wrapper input[type='radio']:disabled {
|
|
2278
2220
|
cursor: not-allowed;
|
|
2279
2221
|
background-color: var(--color-mute-variant);
|
|
2280
2222
|
}
|
|
@@ -2321,7 +2263,7 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2321
2263
|
fieldset .input-slot {
|
|
2322
2264
|
gap: var(--spacing);
|
|
2323
2265
|
}
|
|
2324
|
-
|
|
2266
|
+
.radio-input-wrapper label {
|
|
2325
2267
|
padding-left: 0;
|
|
2326
2268
|
}
|
|
2327
2269
|
`,
|
|
@@ -2331,8 +2273,6 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2331
2273
|
right: 1rem;
|
|
2332
2274
|
width: 440px;
|
|
2333
2275
|
}
|
|
2334
|
-
`,
|
|
2335
|
-
"KOL-TOAST": css`
|
|
2336
2276
|
.toast {
|
|
2337
2277
|
margin-top: 1rem;
|
|
2338
2278
|
}
|
|
@@ -2472,38 +2412,46 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2472
2412
|
}
|
|
2473
2413
|
`,
|
|
2474
2414
|
"KOL-PAGINATION": css`
|
|
2475
|
-
:
|
|
2476
|
-
|
|
2477
|
-
gap: 1rem;
|
|
2478
|
-
}
|
|
2479
|
-
:host .navigation-list {
|
|
2480
|
-
display: inline-flex;
|
|
2481
|
-
flex-wrap: wrap;
|
|
2482
|
-
align-items: center;
|
|
2483
|
-
gap: 0.5rem;
|
|
2415
|
+
.button:focus {
|
|
2416
|
+
outline: none;
|
|
2484
2417
|
}
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
font-family: var(--font-family);
|
|
2491
|
-
cursor: not-allowed;
|
|
2418
|
+
.button-inner {
|
|
2419
|
+
background-color: var(--color-light);
|
|
2420
|
+
border-radius: var(--border-radius);
|
|
2421
|
+
border: 1px solid var(--color-primary);
|
|
2422
|
+
color: var(--color-primary);
|
|
2492
2423
|
font-weight: 700;
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2424
|
+
min-height: var(--a11y-min-size);
|
|
2425
|
+
min-width: var(--a11y-min-size);
|
|
2426
|
+
padding: 8px;
|
|
2496
2427
|
text-align: center;
|
|
2497
|
-
width: inherit;
|
|
2498
2428
|
transition-duration: 0.5s;
|
|
2499
2429
|
transition-property: background-color, color, border-color;
|
|
2500
|
-
color: var(--color-primary);
|
|
2501
|
-
background-color: var(--color-mute-variant);
|
|
2502
2430
|
}
|
|
2503
|
-
:
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2431
|
+
.button:focus .button-inner {
|
|
2432
|
+
outline-offset: 2px;
|
|
2433
|
+
outline: 2px solid var(--color-primary-variant);
|
|
2434
|
+
transition: outline-offset 0.2s linear;
|
|
2435
|
+
}
|
|
2436
|
+
.button:is(:active, :hover):not(:disabled) .button-inner {
|
|
2437
|
+
background-color: var(--color-primary-variant);
|
|
2438
|
+
border-color: var(--color-primary-variant);
|
|
2439
|
+
box-shadow: 0 2px 8px 2px rgba(8, 35, 48, 0.24);
|
|
2440
|
+
color: var(--color-light);
|
|
2441
|
+
}
|
|
2442
|
+
.button:active .button-inner {
|
|
2443
|
+
color: var(--color-light);
|
|
2444
|
+
outline: none;
|
|
2445
|
+
}
|
|
2446
|
+
.button:disabled .button-inner {
|
|
2447
|
+
cursor: not-allowed;
|
|
2448
|
+
opacity: 0.5;
|
|
2449
|
+
}
|
|
2450
|
+
.selected .button-inner {
|
|
2451
|
+
background-color: var(--color-mute-variant);
|
|
2452
|
+
border-radius: var(--a11y-min-size);
|
|
2453
|
+
border: 0;
|
|
2454
|
+
opacity: 1 !important;
|
|
2507
2455
|
}
|
|
2508
2456
|
`,
|
|
2509
2457
|
"KOL-INPUT-RANGE": css`
|
|
@@ -2744,6 +2692,12 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2744
2692
|
left: unset;
|
|
2745
2693
|
position: unset;
|
|
2746
2694
|
}
|
|
2695
|
+
.access-key-hint {
|
|
2696
|
+
background: var(--color-mute-variant);
|
|
2697
|
+
border-radius: 3px;
|
|
2698
|
+
color: var(--color-text);
|
|
2699
|
+
padding: 0 0.3em;
|
|
2700
|
+
}
|
|
2747
2701
|
`,
|
|
2748
2702
|
"KOL-ABBR": css`
|
|
2749
2703
|
abbr {
|
|
@@ -2796,9 +2750,11 @@ const DEFAULT = KoliBri.createTheme("default", {
|
|
|
2796
2750
|
cursor: pointer;
|
|
2797
2751
|
}
|
|
2798
2752
|
`,
|
|
2799
|
-
"KOL-SPLIT-BUTTON":
|
|
2800
|
-
|
|
2801
|
-
|
|
2753
|
+
"KOL-SPLIT-BUTTON": css`
|
|
2754
|
+
.popover {
|
|
2755
|
+
background: #fff;
|
|
2756
|
+
}
|
|
2757
|
+
`
|
|
2802
2758
|
});
|
|
2803
2759
|
|
|
2804
2760
|
export { DEFAULT };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/theme-default",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.10",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": "https://github.com/public-ui/kolibri",
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"wcag"
|
|
39
39
|
],
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@public-ui/schema": "2.0.0-rc.
|
|
42
|
-
"@public-ui/visual-tests": "2.0.0-rc.
|
|
41
|
+
"@public-ui/schema": "2.0.0-rc.10",
|
|
42
|
+
"@public-ui/visual-tests": "2.0.0-rc.10",
|
|
43
43
|
"@types/node": "ts5.2",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
45
|
-
"@typescript-eslint/parser": "6.
|
|
46
|
-
"eslint": "8.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "6.10.0",
|
|
45
|
+
"@typescript-eslint/parser": "6.10.0",
|
|
46
|
+
"eslint": "8.53.0",
|
|
47
47
|
"eslint-plugin-no-loops": "0.3.0",
|
|
48
48
|
"typescript": "5.2.2",
|
|
49
49
|
"unbuild": "1.2.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@public-ui/components": "2.0.0-rc.
|
|
52
|
+
"@public-ui/components": "2.0.0-rc.10"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
55
|
"type": "module",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"depcheck": "depcheck --ignore-bin-package --skip-missing --ignores=@types/*",
|
|
73
73
|
"format": "prettier --check src",
|
|
74
74
|
"lint": "eslint src && tsc --noemit",
|
|
75
|
-
"
|
|
76
|
-
"test-update": "THEME_MODULE=src/index THEME_EXPORT=DEFAULT kolibri-visual-test --update-snapshots"
|
|
75
|
+
"test": "THEME_MODULE=src/index THEME_EXPORT=DEFAULT kolibri-visual-test theme-snapshots.spec.js",
|
|
76
|
+
"test-update": "THEME_MODULE=src/index THEME_EXPORT=DEFAULT kolibri-visual-test --update-snapshots theme-snapshots.spec.js"
|
|
77
77
|
}
|
|
78
78
|
}
|