@public-ui/themes 1.7.6-rc.2 → 1.7.7

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 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 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);}}
304
+ const N=(e,t)=>s=>s(e,t),P=(e,t)=>s=>s(e,t,{append:!1}),o=typeof window=="object"?window:typeof global=="object"?global:typeof self=="object"?self:{};const c=new Map,C=[],v=new Set,h=new Map,B=/--[^;]+/g,G=/:/;(typeof o.A11yUi!="object"||o.A11yUi===null)&&(o.A11yUi={CSS_STYLE_CACHE:h,HYDRATED_HISTORY:C,STYLING_TASK_QUEUE:c});const K=(e,t)=>{let s=t.match(B);if(Array.isArray(s)){s=s.filter(r=>G.test(r));const a=document.createElement("style");a.innerHTML=`.${e} {${s.join(";")}}`,document.querySelector("head")?.appendChild(a);}v.add(e);},d=(e,t)=>typeof o.A11yUi=="object"&&o.A11yUi!==null&&typeof o.A11yUi.Themes=="object"&&o.A11yUi.Themes!==null&&typeof o.A11yUi.Themes[e]=="object"&&o.A11yUi.Themes[e]!==null&&typeof o.A11yUi.Themes[e][t]=="string"?o.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",q=e=>{for(const t of Array.from(e.childNodes))if(t instanceof HTMLStyleElement&&t.tagName==="STYLE")e.removeChild(t);else break},F=(e,t)=>{try{const s=[];t.forEach(a=>{const r=new CSSStyleSheet;r.replaceSync(a),s.push(r);}),e.adoptedStyleSheets=s;}catch{t.reverse().forEach(s=>{const a=document.createElement("style");a.innerHTML=s,e.insertBefore(a,e.firstChild);});}},Q=(e,t,s)=>{if(s!==!1){const a=[...Array.from(e.childNodes).filter(n=>n instanceof HTMLStyleElement&&n.tagName==="STYLE")];let r;try{r=[...Array.from(e.adoptedStyleSheets)];}catch{r=[];}s?.mode==="before"?(a.reverse().forEach(n=>t.unshift(n.innerHTML)),r.reverse().forEach(n=>t.unshift(Array.from(n.cssRules).map(i=>i.cssText).join("")))):s?.mode==="after"&&(a.forEach(n=>t.push(n.innerHTML)),r.forEach(n=>t.push(Array.from(n.cssRules).map(i=>i.cssText).join(""))));}},L=(e,t,s)=>{const a=t.name||"default";let r;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");r=e.shadowRoot;}catch{r=e;}if(h.get(a)?.has(e.tagName))M(e,r,h.get(a)?.get(e.tagName),s);else {const n=d(a,"PROPERTIES"),i=d(a,"GLOBAL"),H=d(a,e.tagName);v.has(a)===!1&&K(a,i);const m=[n,i,H];Q(r,m,t.encroachCss),t.loglevel==="debug"&&console.log(e.tagName,m),t.cache===!0&&(h.has(a)===!1&&h.set(a,new Map),h.get(a)?.set(e.tagName,m)),M(e,r,m,s);}},M=(e,t,s,a)=>{q(t),F(t,s),e.style.display=a;},$=e=>{e.loglevel==="debug"&&C.push({timestamp:Date.now(),numberOfTasks:c.size});},W=e=>{c.delete(e);},O=(e,t)=>{W(e),$(t);},X=e=>{for(const t of e)if(c.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:s,themeDetails:a}=c.get(t.target);L(t.target,a,s),O(t.target,a);}};let f;try{f=new MutationObserver(X);}catch{f=null;}class te{constructor(t,s,a){this.createTheme=(r,n)=>P(r,n),this.createTranslation=(r,n)=>N(r,n),this.Prefix=t,this.Key=Object.getOwnPropertyNames(s),this.Tag=Object.getOwnPropertyNames(a);}}
305
305
 
306
306
  var KeyEnum = /* @__PURE__ */ ((KeyEnum2) => {
307
307
  KeyEnum2[KeyEnum2["error"] = 0] = "error";
@@ -385,7 +385,7 @@ var TagEnum = /* @__PURE__ */ ((TagEnum2) => {
385
385
  return TagEnum2;
386
386
  })(TagEnum || {});
387
387
 
388
- const KoliBri = new Theme("kol", KeyEnum, TagEnum);
388
+ const KoliBri = new te("kol", KeyEnum, TagEnum);
389
389
 
390
390
  const BAMF = KoliBri.createTheme("bamf", {});
391
391
 
@@ -413,7 +413,7 @@ const DESYv1 = KoliBri.createTheme("desy-v1", {
413
413
  --spacing: 0.25em;
414
414
  }
415
415
  :host {
416
- color: var(--color-black);
416
+ background-color: transparent; /* Reset global background-color defined by components */
417
417
  }
418
418
  :host * {
419
419
  box-sizing: border-box;
@@ -1592,7 +1592,7 @@ const DESYv1 = KoliBri.createTheme("desy-v1", {
1592
1592
  border-color: var(--border-default);
1593
1593
  background-color: var(--background-light-grey);
1594
1594
  }
1595
- :host fieldset #error {
1595
+ kol-alert.error {
1596
1596
  order: 3;
1597
1597
  }
1598
1598
  :host fieldset legend {
@@ -1602,7 +1602,7 @@ const DESYv1 = KoliBri.createTheme("desy-v1", {
1602
1602
  :host fieldset kol-input {
1603
1603
  order: 2;
1604
1604
  }
1605
- :host fieldset kol-alert#error {
1605
+ kol-alert.error {
1606
1606
  padding-left: 0.5em;
1607
1607
  color: var(--color-warning);
1608
1608
  }
@@ -3252,7 +3252,7 @@ const DESYv2 = KoliBri.createTheme("desy-v2", {
3252
3252
  --spacing: 0.25em;
3253
3253
  }
3254
3254
  :host {
3255
- color: var(--color-black);
3255
+ background-color: transparent; /* Reset global background-color defined by components */
3256
3256
  }
3257
3257
  :host * {
3258
3258
  box-sizing: border-box;
@@ -4346,10 +4346,10 @@ const DESYv2 = KoliBri.createTheme("desy-v2", {
4346
4346
  height: 1.25em;
4347
4347
  left: 2px;
4348
4348
  }
4349
- &:has(input:checked) .icon {
4349
+ &.checked .icon {
4350
4350
  transform: translate(2em, -50%);
4351
4351
  }
4352
- &:has(input:indeterminate) .icon {
4352
+ &.indeterminate .icon {
4353
4353
  transform: translate(1em, -50%);
4354
4354
  }
4355
4355
  }
@@ -4444,7 +4444,7 @@ const DESYv2 = KoliBri.createTheme("desy-v2", {
4444
4444
  border-color: var(--border-default);
4445
4445
  background-color: var(--background-light-grey);
4446
4446
  }
4447
- :host fieldset #error {
4447
+ kol-alert.error {
4448
4448
  order: 3;
4449
4449
  }
4450
4450
  :host fieldset legend {
@@ -4454,7 +4454,7 @@ const DESYv2 = KoliBri.createTheme("desy-v2", {
4454
4454
  :host fieldset kol-input {
4455
4455
  order: 2;
4456
4456
  }
4457
- :host fieldset kol-alert#error {
4457
+ kol-alert.error {
4458
4458
  padding-left: 0.5em;
4459
4459
  color: var(--color-warning);
4460
4460
  }
@@ -7877,6 +7877,10 @@ const BZSt = KoliBri.createTheme("bzst", {
7877
7877
  }
7878
7878
  .disabled {
7879
7879
  opacity: 0.33;
7880
+ }
7881
+ .button:focus-within {
7882
+ outline: var(--focusOutline);
7883
+ outline-offset: 2px;
7880
7884
  }`,
7881
7885
  "KOL-INPUT-RADIO": `:host {
7882
7886
  --border-width: 1px;
@@ -8793,6 +8797,7 @@ const BMF = KoliBri.createTheme("bmf", {
8793
8797
  --spacing: 0.25em;
8794
8798
  }
8795
8799
  :host {
8800
+ background-color: transparent; /* Reset global background-color defined by components */
8796
8801
  font-family: var(--font-family); /* font-size: var(--font-size); */
8797
8802
  }
8798
8803
  * {
@@ -8843,7 +8848,7 @@ const BMF = KoliBri.createTheme("bmf", {
8843
8848
  }
8844
8849
  kol-tooltip-wc .tooltip-area {
8845
8850
  background-color: var(--color-white);
8846
- color: var(--color-metal);
8851
+ color: var(--color-black);
8847
8852
  }
8848
8853
  kol-tooltip-wc .tooltip-content {
8849
8854
  border-radius: var(--border-radius);
@@ -8903,6 +8908,12 @@ const BMF = KoliBri.createTheme("bmf", {
8903
8908
  border-color: var(--color-red);
8904
8909
  color: var(--color-white);
8905
8910
  }
8911
+ .success :is(a, button) > kol-span-wc,
8912
+ .success :is(a, button):disabled:hover > kol-span-wc {
8913
+ background-color: var(--color-green);
8914
+ border-color: var(--color-green);
8915
+ color: var(--color-white);
8916
+ }
8906
8917
  .ghost :is(a, button) > kol-span-wc,
8907
8918
  .ghost :is(a, button):disabled:hover > kol-span-wc {
8908
8919
  border-color: var(--color-white);
@@ -8918,6 +8929,8 @@ const BMF = KoliBri.createTheme("bmf", {
8918
8929
  .normal :is(a, button):hover > kol-span-wc,
8919
8930
  .danger :is(a, button):active > kol-span-wc,
8920
8931
  .danger :is(a, button):hover > kol-span-wc,
8932
+ .success :is(a, button):active > kol-span-wc,
8933
+ .success :is(a, button):hover > kol-span-wc,
8921
8934
  .ghost :is(a, button):active > kol-span-wc,
8922
8935
  .ghost :is(a, button):hover > kol-span-wc {
8923
8936
  background-color: var(--color-ocean);
@@ -8938,6 +8951,7 @@ const BMF = KoliBri.createTheme("bmf", {
8938
8951
  .secondary :is(a, button):active > kol-span-wc,
8939
8952
  .normal :is(a, button):active > kol-span-wc,
8940
8953
  .danger :is(a, button):active > kol-span-wc,
8954
+ .success :is(a, button):active > kol-span-wc,
8941
8955
  .ghost :is(a, button):active > kol-span-wc {
8942
8956
  border-color: var(--color-white);
8943
8957
  box-shadow: none;
@@ -8963,6 +8977,14 @@ const BMF = KoliBri.createTheme("bmf", {
8963
8977
  :is(a, button).transparent > kol-span-wc {
8964
8978
  background-color: transparent;
8965
8979
  border-color: transparent;
8980
+ }
8981
+ /** CUSTOM_CLASS */
8982
+ :is(a, button).icon-only > kol-span-wc {
8983
+ padding: 8px;
8984
+ width: unset;
8985
+ }
8986
+ :is(a, button).icon-only > kol-span-wc > span > span {
8987
+ display: block;
8966
8988
  }`,
8967
8989
  "KOL-INPUT-TEXT": `kol-input {
8968
8990
  gap: 0.25em;
@@ -10540,11 +10562,11 @@ const BMF = KoliBri.createTheme("bmf", {
10540
10562
  width: 100%;
10541
10563
  min-height: 44px;
10542
10564
  }
10543
- :host kol-input.default {
10565
+ :host kol-input.default:not(.hide-label) {
10544
10566
  grid-template-columns: 1.5rem auto;
10545
10567
  gap: 0.4em;
10546
10568
  }
10547
- :host kol-input.switch {
10569
+ :host kol-input.switch:not(.hide-label) {
10548
10570
  grid-template-columns: 3.5rem auto;
10549
10571
  gap: 0.4em;
10550
10572
  }
@@ -10593,6 +10615,17 @@ const BMF = KoliBri.createTheme("bmf", {
10593
10615
  line-height: 24px;
10594
10616
  font-size: 1rem;
10595
10617
  }
10618
+ :host kol-input.default .checkbox-container {
10619
+ justify-content: flex-start;
10620
+ }
10621
+ :host kol-input.default input[type='checkbox']:indeterminate {
10622
+ background-color: var(--color-midnight);
10623
+ border-color: var(--color-midnight);
10624
+ }
10625
+ :host kol-input.default .icon {
10626
+ color: var(--color-white);
10627
+ margin: -0.125rem 0 0 0.25rem; /* visually align */
10628
+ }
10596
10629
  :host input:hover {
10597
10630
  border-color: var(--color-midnight);
10598
10631
  box-shadow: 0px 2px 8px 2px rgba(8, 35, 48, 0.24);
@@ -10632,42 +10665,17 @@ const BMF = KoliBri.createTheme("bmf", {
10632
10665
  min-width: calc(6 * var(--spacing));
10633
10666
  width: calc(6 * var(--spacing));
10634
10667
  }
10635
- :host kol-input.default input[type="checkbox"]:before {
10636
- border-radius: 1.5em;
10637
- background-color: transparent;
10638
- display: block;
10639
- height: calc(6 * var(--spacing));
10640
- position: relative;
10641
- width: calc(6 * var(--spacing));
10642
- }
10643
- :host kol-input.default input[type="checkbox"]:checked:before {
10644
- border-right-width: 3px;
10645
- border-bottom-width: 3px;
10646
- left: calc(1.5 * var(--spacing) - 2px);
10647
- top: calc(2.85 * var(--spacing) - 2px);
10648
- transform: rotate(40deg) translate(-50%, -50%);
10649
- background-color: transparent;
10650
- border-width: 0px 3px 3px 0px;
10651
- border-color: white;
10652
- border-radius: 1px;
10653
- border-style: solid;
10654
- height: calc(3 * var(--spacing));
10655
- width: calc(1.5 * var(--spacing));
10656
- }
10657
- :host kol-input.default input[type="checkbox"]:indeterminate {
10658
- --tw-bg-opacity: 1;
10659
- background-color: var(--color-midnight);
10660
- }
10661
- :host kol-input.default input[type="checkbox"]:indeterminate:before {
10662
- background-color: var(--color-white);
10663
- height: 0.125rem;
10664
- top: 0.6rem;
10665
- left: 0.25rem;
10666
- width: calc(3 * var(--spacing));
10667
- transform: inherit;
10668
- }
10669
- :host kol-input.default input[type="checkbox"]:checked:indeterminate:before {
10670
- border-width: 0px 1px 1px 0px;
10668
+ .default {
10669
+ .icon::part(icon) {
10670
+ font-family: 'Font Awesome 6 Free';
10671
+ font-weight: 900;
10672
+ }
10673
+ &.checked .icon::part(icon)::before {
10674
+ content: '\\f00c';
10675
+ }
10676
+ &.indeterminate .icon::part(icon)::before {
10677
+ content: '\\f068';
10678
+ }
10671
10679
  }
10672
10680
  :host kol-input.switch input[type="checkbox"] {
10673
10681
  min-width: 3.5em;
@@ -10676,7 +10684,6 @@ const BMF = KoliBri.createTheme("bmf", {
10676
10684
  border-width: 0;
10677
10685
  height: 1.5em;
10678
10686
  border-radius: 1.25em;
10679
- display: inline-block;
10680
10687
  position: relative;
10681
10688
  }
10682
10689
  :host kol-input.switch input[type="checkbox"]:before {
@@ -10712,6 +10719,9 @@ const BMF = KoliBri.createTheme("bmf", {
10712
10719
  transform: translateX(1em);
10713
10720
  }
10714
10721
  .switch {
10722
+ & .checkbox-input-element {
10723
+ display: block;
10724
+ }
10715
10725
  & .icon {
10716
10726
  width: 1.25em;
10717
10727
  height: 1.25em;
@@ -10725,13 +10735,13 @@ const BMF = KoliBri.createTheme("bmf", {
10725
10735
  content: "\\2b";
10726
10736
  }
10727
10737
  }
10728
- &:has(input:checked) .icon {
10738
+ &.checked .icon {
10729
10739
  transform: translate(2em, -50%);
10730
10740
  &::part(icon)::before {
10731
10741
  content: "\\f00c";
10732
10742
  }
10733
10743
  }
10734
- &:has(input:indeterminate) .icon {
10744
+ &.indeterminate .icon {
10735
10745
  transform: translate(1em, -50%);
10736
10746
  &::part(icon)::before {
10737
10747
  content: "\\f068";
@@ -10766,11 +10776,22 @@ const BMF = KoliBri.createTheme("bmf", {
10766
10776
  min-width: 32px;
10767
10777
  place-content: center;
10768
10778
  }
10779
+ :host kol-input.button.hide-label > .input {
10780
+ border-top-right-radius: var(--border-radius);
10781
+ border-bottom-right-radius: var(--border-radius);
10782
+ }
10769
10783
  :host kol-input.button > .input > div {
10770
10784
  display: flex;
10771
10785
  }
10772
10786
  :host kol-input.button .icon {
10773
10787
  height: auto;
10788
+ }
10789
+ .button:focus-within {
10790
+ border-radius: var(--a11y-min-size);
10791
+ outline-color: var(--color-ocean);
10792
+ outline-offset: 2px;
10793
+ outline-style: solid;
10794
+ outline-width: 3px;
10774
10795
  }`,
10775
10796
  "KOL-INPUT-RADIO": `/* INPUT */
10776
10797
  kol-input {
@@ -10860,7 +10881,7 @@ const BMF = KoliBri.createTheme("bmf", {
10860
10881
  border-color: var(--border-default);
10861
10882
  background-color: var(--background-light-grey);
10862
10883
  }
10863
- fieldset #error {
10884
+ kol-alert.error {
10864
10885
  order: 1;
10865
10886
  }
10866
10887
  fieldset legend {
@@ -10874,7 +10895,7 @@ const BMF = KoliBri.createTheme("bmf", {
10874
10895
  padding-left: 1em;
10875
10896
  border-left: 3px solid var(--color-red);
10876
10897
  }
10877
- fieldset kol-alert#error {
10898
+ kol-alert.error {
10878
10899
  color: var(--color-red);
10879
10900
  font-weight: 700;
10880
10901
  }
@@ -18507,6 +18528,7 @@ const DEFAULT = KoliBri.createTheme("default", {
18507
18528
  --color-mute-variant: var(--kolibri-color-mute-variant, #bec5c9);
18508
18529
  }
18509
18530
  :host {
18531
+ background-color: transparent; /* Reset global background-color defined by components */
18510
18532
  font-family: var(--font-family);
18511
18533
  font-size: var(--font-size);
18512
18534
  }
@@ -20130,6 +20152,9 @@ const DEFAULT = KoliBri.createTheme("default", {
20130
20152
  :host kol-input.button {
20131
20153
  gap: 0.4rem 0;
20132
20154
  }
20155
+ .checkbox-container {
20156
+ justify-content: flex-start;
20157
+ }
20133
20158
  :host kol-input > div.input {
20134
20159
  display: inherit;
20135
20160
  min-height: var(--a11y-min-size);
@@ -20198,13 +20223,6 @@ const DEFAULT = KoliBri.createTheme("default", {
20198
20223
  cursor: pointer;
20199
20224
  transition: 0.5s;
20200
20225
  }
20201
- :host kol-input input[type='checkbox'].kol-disabled:before {
20202
- cursor: not-allowed;
20203
- }
20204
- :host kol-input input[type='checkbox']:before {
20205
- content: '';
20206
- cursor: pointer;
20207
- }
20208
20226
  :host kol-input input[type='checkbox']:checked {
20209
20227
  background-color: var(--color-primary);
20210
20228
  border-color: var(--color-primary);
@@ -20215,51 +20233,22 @@ const DEFAULT = KoliBri.createTheme("default", {
20215
20233
  min-width: calc(6 * 0.25rem);
20216
20234
  width: calc(6 * 0.25rem);
20217
20235
  }
20218
- :host kol-input.default input[type='checkbox']:before {
20219
- border-radius: 1.5em;
20220
- background-color: transparent;
20221
- display: block;
20222
- height: calc(6 * 0.25rem);
20223
- position: relative;
20224
- width: calc(6 * 0.25rem);
20225
- }
20226
- :host kol-input.default input[type='checkbox']:checked:before {
20227
- border-right-width: 3px;
20228
- border-bottom-width: 3px;
20229
- left: calc(1.5 * 0.25rem - 2px);
20230
- top: calc(2.85 * 0.25rem - 2px);
20231
- transform: rotate(40deg) translate(-50%, -50%);
20232
- background-color: transparent;
20233
- border-width: 0px 3px 3px 0px;
20234
- border-color: white;
20235
- border-radius: 1px;
20236
- border-style: solid;
20237
- height: calc(3 * 0.25rem);
20238
- width: calc(1.5 * 0.25rem);
20239
- }
20240
20236
  :host kol-input.default input[type='checkbox']:indeterminate {
20241
20237
  background-color: var(--color-primary);
20242
20238
  }
20243
- :host kol-input.default input[type='checkbox']:indeterminate:before {
20244
- background-color: var(--color-light);
20245
- height: 0.125rem;
20246
- top: 0.6rem;
20247
- left: 0.25rem;
20248
- width: calc(3 * 0.25rem);
20249
- transform: inherit;
20250
- }
20251
- :host kol-input.default input[type='checkbox']:checked:indeterminate:before {
20252
- border-width: 0px 1px 1px 0px;
20239
+ :host kol-input.default .icon {
20240
+ color: var(--color-light);
20241
+ margin-left: 0.25rem;
20253
20242
  }
20254
20243
  :host kol-input.switch input[type='checkbox'] {
20255
- min-width: 3.5em;
20256
- width: 3.5em;
20257
20244
  background-color: var(--color-subtle);
20245
+ border-radius: 1.25em;
20258
20246
  border-width: 0;
20247
+ display: block;
20259
20248
  height: 1.5em;
20260
- border-radius: 1.25em;
20261
- display: inline-block;
20249
+ min-width: 3.5em;
20262
20250
  position: relative;
20251
+ width: 3.5em;
20263
20252
  }
20264
20253
  :host kol-input.switch input[type='checkbox']:before {
20265
20254
  width: 1.25em;
@@ -20286,17 +20275,24 @@ const DEFAULT = KoliBri.createTheme("default", {
20286
20275
  left: 2px;
20287
20276
  }
20288
20277
 
20289
- &:has(input:checked) .icon {
20278
+ &.checked .icon {
20290
20279
  transform: translate(2em, -50%);
20291
20280
  }
20292
20281
 
20293
- &:has(input:indeterminate) .icon {
20282
+ &.indeterminate .icon {
20294
20283
  transform: translate(1em, -50%);
20295
20284
  }
20296
20285
  }
20297
20286
  :host .disabled {
20298
20287
  opacity: 0.33;
20299
20288
  }
20289
+ .button:focus-within {
20290
+ border-radius: var(--border-radius);
20291
+ outline-color: var(--color-primary-variant);
20292
+ outline-offset: 2px;
20293
+ outline-style: solid;
20294
+ outline-width: calc(var(--border-width) * 2);
20295
+ }
20300
20296
  `,
20301
20297
  "KOL-INPUT-RADIO": css$1`
20302
20298
  label {
@@ -20380,7 +20376,7 @@ const DEFAULT = KoliBri.createTheme("default", {
20380
20376
  cursor: not-allowed;
20381
20377
  background-color: var(--color-mute-variant);
20382
20378
  }
20383
- fieldset #error {
20379
+ kol-alert.error {
20384
20380
  order: 1;
20385
20381
  }
20386
20382
  fieldset legend {
@@ -20394,7 +20390,7 @@ const DEFAULT = KoliBri.createTheme("default", {
20394
20390
  padding-left: 1rem;
20395
20391
  border-left: 3px solid var(--color-danger);
20396
20392
  }
20397
- fieldset kol-alert#error {
20393
+ kol-alert.error {
20398
20394
  color: var(--color-danger);
20399
20395
  font-weight: 700;
20400
20396
  }
@@ -20968,6 +20964,7 @@ const ECL_EC = KoliBri.createTheme("ecl-ec", {
20968
20964
  --spacing-2xs: 4px; /* ?! */
20969
20965
  }
20970
20966
  :host {
20967
+ background-color: transparent; /* Reset global background-color defined by components */
20971
20968
  display: inline-block;
20972
20969
  font-family: var(--font-family);
20973
20970
  }
@@ -21461,7 +21458,11 @@ const ECL_EC = KoliBri.createTheme("ecl-ec", {
21461
21458
  background-color: var(--color-blue);
21462
21459
  border-color: var(--color-blue);
21463
21460
  }`,
21464
- "KOL-INPUT-CHECKBOX": `input[type="checkbox"] {
21461
+ "KOL-INPUT-CHECKBOX": `
21462
+ .checkbox-container {
21463
+ justify-content: flex-start;
21464
+ }
21465
+ input[type="checkbox"] {
21465
21466
  background-color: var(--color-white);
21466
21467
  border-width: 2px;
21467
21468
  border-style: solid;
@@ -21489,12 +21490,6 @@ const ECL_EC = KoliBri.createTheme("ecl-ec", {
21489
21490
  background-color: var(--color-blue-130);
21490
21491
  border-color: var(--color-blue-130);
21491
21492
  }
21492
- input[type="checkbox"]:checked::before {
21493
- border-color: var(--color-white);
21494
- }
21495
- input[type="checkbox"]:indeterminate:hover::before {
21496
- background-color: var(--color-blue-130);
21497
- }
21498
21493
  .error input[type="checkbox"] {
21499
21494
  border-color: var(--color-red);
21500
21495
  }
@@ -21509,12 +21504,18 @@ const ECL_EC = KoliBri.createTheme("ecl-ec", {
21509
21504
  background-color: var(--color-red-1xx);
21510
21505
  border-color: var(--color-red-1xx);
21511
21506
  }
21512
- .error input[type="checkbox"]:indeterminate:hover::before {
21513
- background-color: var(--color-red-1xx);
21514
- }
21515
21507
  .error.required label > span::after {
21516
21508
  color: var(--color-red);
21517
21509
  }
21510
+ .default .icon {
21511
+ margin-left: 0.2rem;
21512
+ }
21513
+ .default.checked .icon {
21514
+ color: var(--color-white);
21515
+ }
21516
+ .switch input[type='checkbox'] {
21517
+ display: block;
21518
+ }
21518
21519
  .switch input[type="checkbox"]::before,
21519
21520
  .switch input[type="checkbox"]:indeterminate::before {
21520
21521
  background-color: var(--color-grey-75);
@@ -21561,6 +21562,12 @@ const ECL_EC = KoliBri.createTheme("ecl-ec", {
21561
21562
  .hint {
21562
21563
  font-size: 0.875rem;
21563
21564
  order: 4;
21565
+ }
21566
+ .button:focus-within {
21567
+ outline-color: var(--color-blue);
21568
+ outline-offset: 2px;
21569
+ outline-style: solid;
21570
+ outline-width: 2px;
21564
21571
  }`,
21565
21572
  "KOL-INPUT-COLOR": `kol-input {
21566
21573
  color: var(--color-grey);
@@ -22500,6 +22507,7 @@ const ECL_EU = KoliBri.createTheme("ecl-eu", {
22500
22507
  --spacing-2xs: 4px; /* ?! */
22501
22508
  }
22502
22509
  :host {
22510
+ background-color: transparent; /* Reset global background-color defined by components */
22503
22511
  display: inline-block;
22504
22512
  font-family: var(--font-family);
22505
22513
  }
@@ -23063,7 +23071,10 @@ const ECL_EU = KoliBri.createTheme("ecl-eu", {
23063
23071
  :host > div > div.content + div.footer {
23064
23072
  border-top: 2px solid var(--color-blue);
23065
23073
  }`,
23066
- "KOL-INPUT-CHECKBOX": `input[type="checkbox"] {
23074
+ "KOL-INPUT-CHECKBOX": `.checkbox-container {
23075
+ justify-content: flex-start;
23076
+ }
23077
+ input[type="checkbox"] {
23067
23078
  background-color: var(--color-white);
23068
23079
  border-width: 2px;
23069
23080
  border-style: solid;
@@ -23091,12 +23102,6 @@ const ECL_EU = KoliBri.createTheme("ecl-eu", {
23091
23102
  background-color: var(--color-blue-130);
23092
23103
  border-color: var(--color-blue-130);
23093
23104
  }
23094
- input[type="checkbox"]:checked::before {
23095
- border-color: var(--color-white);
23096
- }
23097
- input[type="checkbox"]:indeterminate:hover::before {
23098
- background-color: var(--color-blue-130);
23099
- }
23100
23105
  .error input[type="checkbox"] {
23101
23106
  border-color: var(--color-red);
23102
23107
  }
@@ -23111,12 +23116,18 @@ const ECL_EU = KoliBri.createTheme("ecl-eu", {
23111
23116
  background-color: var(--color-red-1xx);
23112
23117
  border-color: var(--color-red-1xx);
23113
23118
  }
23114
- .error input[type="checkbox"]:indeterminate:hover::before {
23115
- background-color: var(--color-red-1xx);
23116
- }
23117
23119
  .error.required label > span::after {
23118
23120
  color: var(--color-red);
23119
23121
  }
23122
+ .default .icon {
23123
+ margin-left: 0.2rem;
23124
+ }
23125
+ .default.checked .icon {
23126
+ color: var(--color-white);
23127
+ }
23128
+ .switch input[type='checkbox'] {
23129
+ display: block;
23130
+ }
23120
23131
  .switch input[type="checkbox"]::before,
23121
23132
  .switch input[type="checkbox"]:indeterminate::before {
23122
23133
  background-color: var(--color-grey-75);
@@ -23215,6 +23226,11 @@ const ECL_EU = KoliBri.createTheme("ecl-eu", {
23215
23226
  }
23216
23227
  .error .input {
23217
23228
  border-color: var(--color-red);
23229
+ }
23230
+ .button:focus-within {
23231
+ outline-color: var(--color-blue-130);
23232
+ outline-style: solid;
23233
+ outline-width: 2px;
23218
23234
  }`,
23219
23235
  "KOL-INPUT-FILE": `kol-input {
23220
23236
  color: var(--color-grey);
@@ -23928,6 +23944,7 @@ const ITZBund = KoliBri.createTheme("itzbund", {
23928
23944
  --kolibri-spacing: calc(2 * var(--spacing));
23929
23945
  }
23930
23946
  :host {
23947
+ background-color: transparent; /* Reset global background-color defined by components */
23931
23948
  font-family: var(--font-family); /* font-size: var(--font-size); */
23932
23949
  }
23933
23950
  * {
@@ -25192,7 +25209,11 @@ const ITZBund = KoliBri.createTheme("itzbund", {
25192
25209
  border-top-color: var(--color-achat);
25193
25210
  border-top-width: 1px;
25194
25211
  }`,
25195
- "KOL-INPUT-CHECKBOX": `/* ALL INPUT, SELECT, TEXTAREA */
25212
+ "KOL-INPUT-CHECKBOX": `
25213
+ .checkbox-container {
25214
+ justify-content: flex-start;
25215
+ }
25216
+ /* ALL INPUT, SELECT, TEXTAREA */
25196
25217
  label {
25197
25218
  cursor: pointer;
25198
25219
  }
@@ -25252,13 +25273,6 @@ const ITZBund = KoliBri.createTheme("itzbund", {
25252
25273
  cursor: pointer;
25253
25274
  transition: 0.5s;
25254
25275
  }
25255
- input[type="checkbox"].kol-disabled:before {
25256
- cursor: not-allowed;
25257
- }
25258
- input[type="checkbox"]:before {
25259
- content: "";
25260
- cursor: pointer;
25261
- }
25262
25276
  input[type="checkbox"]:checked {
25263
25277
  background-color: var(--color-petrol);
25264
25278
  border-color: var(--color-petrol);
@@ -25269,41 +25283,17 @@ const ITZBund = KoliBri.createTheme("itzbund", {
25269
25283
  min-width: calc(6 * 2 * var(--spacing));
25270
25284
  width: calc(6 * 2 * var(--spacing));
25271
25285
  }
25272
- .default input[type="checkbox"]:before {
25273
- /* border-radius: 0.25em; */
25274
- background-color: transparent;
25275
- display: block;
25276
- height: calc(6 * 2 * var(--spacing));
25277
- position: relative;
25278
- width: calc(6 * 2 * var(--spacing));
25279
- }
25280
- .default input[type="checkbox"]:checked:before {
25281
- border-right-width: 3px;
25282
- border-bottom-width: 3px;
25283
- left: calc(1.5 * 2 * var(--spacing) - 2px);
25284
- top: calc(2.85 * 2 * var(--spacing) - 2px);
25285
- transform: rotate(40deg) translate(-50%, -50%);
25286
- background-color: transparent;
25287
- border-width: 0px 3px 3px 0px;
25288
- border-color: white;
25289
- border-radius: 1px;
25290
- border-style: solid;
25291
- height: calc(3 * 2 * var(--spacing));
25292
- width: calc(1.5 * 2 * var(--spacing));
25286
+ .default .icon {
25287
+ margin-left: 0.25rem;
25293
25288
  }
25294
- .default input[type="checkbox"]:indeterminate:before {
25295
- background-color: var(--kolibri-color-normal);
25296
- height: 0.375rem;
25297
- top: 0.45rem;
25298
- left: 0.15rem;
25299
- width: calc(4 * 2 * var(--spacing));
25289
+ .default.checked .icon {
25290
+ color: var(--color-weiss);
25300
25291
  }
25301
25292
  .switch input[type="checkbox"] {
25302
- /* border-radius: 0.25em; */
25293
+ display: block;
25303
25294
  min-width: 3.2em;
25304
25295
  width: 3.2em;
25305
25296
  height: 1.7em;
25306
- display: inline-block;
25307
25297
  position: relative;
25308
25298
  }
25309
25299
  .switch input[type="checkbox"]:before {
@@ -25333,15 +25323,12 @@ const ITZBund = KoliBri.createTheme("itzbund", {
25333
25323
  transform: translateX(0.75em);
25334
25324
  background-color: var(--color-petrol);
25335
25325
  }
25336
- .switch:has(input:not(:checked), input:indeterminate) .icon {
25326
+ .switch:is(:not(.checked), .indeterminate) .icon {
25337
25327
  color: #fff;
25338
25328
  }
25339
25329
  .disabled {
25340
25330
  opacity: 0.33;
25341
25331
  }
25342
- .default kol-icon {
25343
- display: none;
25344
- }
25345
25332
  kol-input span.hint {
25346
25333
  grid-column: span 2;
25347
25334
  font-style: italic;
@@ -25349,6 +25336,13 @@ const ITZBund = KoliBri.createTheme("itzbund", {
25349
25336
  display: block;
25350
25337
  order: 3;
25351
25338
  padding: 0 var(--spacing);
25339
+ }
25340
+ .button:focus-within {
25341
+ border-radius: 2rem;
25342
+ outline-color: var(--color-achat) !important;
25343
+ outline-offset: 2px;
25344
+ outline-style: solid;
25345
+ outline-width: 3px;
25352
25346
  }`,
25353
25347
  "KOL-INPUT-RADIO": `/* INPUT */
25354
25348
  :host input:focus {
@@ -25664,6 +25658,7 @@ const MFM = KoliBri.createTheme("mfm", {
25664
25658
  --spacing: 0.25em;
25665
25659
  }
25666
25660
  :host {
25661
+ background-color: transparent; /* Reset global background-color defined by components */
25667
25662
  font-family: var(--font-family); /* font-size: var(--font-size); */
25668
25663
  }
25669
25664
  * {
@@ -27481,6 +27476,13 @@ const MFM = KoliBri.createTheme("mfm", {
27481
27476
  }
27482
27477
  :host .disabled {
27483
27478
  opacity: 0.33;
27479
+ }
27480
+ .button:focus-within {
27481
+ border-radius: 0.25rem;
27482
+ outline-color: var(--color-ocean);
27483
+ outline-offset: 2px;
27484
+ outline-style: solid;
27485
+ outline-width: 3px;
27484
27486
  }`,
27485
27487
  "KOL-INPUT-RADIO": `/* INPUT */
27486
27488
  kol-input {
@@ -27569,7 +27571,7 @@ const MFM = KoliBri.createTheme("mfm", {
27569
27571
  border-color: var(--border-default);
27570
27572
  background-color: var(--background-light-grey);
27571
27573
  }
27572
- fieldset #error {
27574
+ kol-alert.error {
27573
27575
  order: 1;
27574
27576
  }
27575
27577
  fieldset legend {
@@ -27583,7 +27585,7 @@ const MFM = KoliBri.createTheme("mfm", {
27583
27585
  padding-left: 1em;
27584
27586
  border-left: 3px solid var(--color-red);
27585
27587
  }
27586
- fieldset kol-alert#error {
27588
+ kol-alert.error {
27587
27589
  color: var(--color-red);
27588
27590
  font-weight: 700;
27589
27591
  }
@@ -35239,6 +35241,7 @@ const MAPZ = KoliBri.createTheme("mapz", {
35239
35241
  --font-size: 16px;
35240
35242
  }
35241
35243
  :host {
35244
+ background-color: transparent; /* Reset global background-color defined by components */1
35242
35245
  font-family: var(--font-family); /* font-size: var(--font-size); */
35243
35246
  }
35244
35247
  * {
@@ -36072,6 +36075,9 @@ const MAPZ = KoliBri.createTheme("mapz", {
36072
36075
  content: "*";
36073
36076
  padding-left: 0.125em;
36074
36077
  }
36078
+ .checkbox-container {
36079
+ justify-content: flex-start;
36080
+ }
36075
36081
  input:hover {
36076
36082
  border-color: var(--kolibri-color-primary);
36077
36083
  } /* NEU */
@@ -36112,13 +36118,6 @@ const MAPZ = KoliBri.createTheme("mapz", {
36112
36118
  cursor: pointer;
36113
36119
  transition: 0.5s;
36114
36120
  }
36115
- input[type="checkbox"].kol-disabled:before {
36116
- cursor: not-allowed;
36117
- }
36118
- input[type="checkbox"]:before {
36119
- content: "";
36120
- cursor: pointer;
36121
- }
36122
36121
  input[type="checkbox"]:checked {
36123
36122
  background-color: var(--kolibri-color-primary);
36124
36123
  border-color: var(--kolibri-color-primary);
@@ -36129,41 +36128,21 @@ const MAPZ = KoliBri.createTheme("mapz", {
36129
36128
  min-width: calc(6 * var(--kolibri-spacing));
36130
36129
  width: calc(6 * var(--kolibri-spacing));
36131
36130
  }
36132
- .default input[type="checkbox"]:before {
36133
- border-radius: 0.25em;
36134
- background-color: transparent;
36135
- display: block;
36136
- height: calc(6 * var(--kolibri-spacing));
36137
- position: relative;
36138
- width: calc(6 * var(--kolibri-spacing));
36131
+ .default .icon {
36132
+ margin-left: 0.25rem;
36139
36133
  }
36140
- .default input[type="checkbox"]:checked:before {
36141
- border-right-width: 3px;
36142
- border-bottom-width: 3px;
36143
- left: calc(1.5 * var(--kolibri-spacing) - 2px);
36144
- top: calc(2.85 * var(--kolibri-spacing) - 2px);
36145
- transform: rotate(40deg) translate(-50%, -50%);
36146
- background-color: transparent;
36147
- border-width: 0px 3px 3px 0px;
36148
- border-color: white;
36149
- border-radius: 1px;
36150
- border-style: solid;
36151
- height: calc(3 * var(--kolibri-spacing));
36152
- width: calc(1.5 * var(--kolibri-spacing));
36134
+ .default.checked .icon {
36135
+ color: #fff;
36153
36136
  }
36154
- .default input[type="checkbox"]:indeterminate:before {
36155
- background-color: var(--kolibri-color-normal);
36156
- height: 0.375rem;
36157
- top: 0.45rem;
36158
- left: 0.15rem;
36159
- width: calc(4 * var(--kolibri-spacing));
36137
+ .default.indeterminate .icon {
36138
+ color: var(--kolibri-color-normal);
36160
36139
  }
36161
36140
  .switch input[type="checkbox"] {
36141
+ display: block;
36162
36142
  min-width: 3.2em;
36163
36143
  width: 3.2em;
36164
36144
  height: 1.7em;
36165
36145
  border-radius: 0.25em;
36166
- display: inline-block;
36167
36146
  position: relative;
36168
36147
  }
36169
36148
  .switch input[type="checkbox"]:before {
@@ -36193,11 +36172,18 @@ const MAPZ = KoliBri.createTheme("mapz", {
36193
36172
  transform: translateX(0.75em);
36194
36173
  background-color: var(--kolibri-color-primary);
36195
36174
  }
36196
- .switch:has(input:not(:checked), input:indeterminate) .icon {
36175
+ .switch:is(.checked, .indeterminate) .icon {
36197
36176
  color: #fff;
36198
36177
  }
36199
36178
  .disabled {
36200
36179
  opacity: 0.33;
36180
+ }
36181
+ .button:focus-within {
36182
+ border-radius: var(--kolibri-border-radius);
36183
+ outline-color: var(--kolibri-color-outline);
36184
+ outline-offset: 2px;
36185
+ outline-style: solid;
36186
+ outline-width: 3px;
36201
36187
  }`,
36202
36188
  "KOL-INPUT-RADIO": `label {
36203
36189
  cursor: pointer;
@@ -36266,7 +36252,7 @@ const MAPZ = KoliBri.createTheme("mapz", {
36266
36252
  box-shadow: 0 0 0.1rem black;
36267
36253
  background-color: var(--kolibri-color-primary);
36268
36254
  }
36269
- fieldset #error {
36255
+ kol-alert.error {
36270
36256
  margin: 0.4em 0;
36271
36257
  order: 3;
36272
36258
  }
@@ -52803,6 +52789,7 @@ const css = (input) => input.join(``);
52803
52789
  const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
52804
52790
  GLOBAL: css`
52805
52791
  :host {
52792
+ background-color: transparent; /* Reset global background-color defined by components */
52806
52793
  --border-color: var(--color-neutral);
52807
52794
  --border-radius: 0.25rem;
52808
52795
  --box-shadow: rgba(0, 0, 0, 0.12) 0 12px 12px -4px, rgba(0, 0, 0, 0.04) 0 4px 4px -4px;
@@ -53619,12 +53606,16 @@ const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
53619
53606
  :host {
53620
53607
  --spacing: 0.25rem;
53621
53608
  }
53609
+
53610
+ .checkbox-container {
53611
+ justify-content: flex-start;
53612
+ }
53622
53613
  input {
53623
53614
  border-color: var(--color-neutral-dark);
53624
53615
  border-width: 2px;
53625
53616
  border-style: solid;
53626
53617
  }
53627
- label {
53618
+ .input-label {
53628
53619
  padding-left: 0.75rem;
53629
53620
  }
53630
53621
  kol-input:not(.disabled):hover label,
@@ -53637,10 +53628,6 @@ const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
53637
53628
  :host kol-input:not(.disabled) :is(.input, label) {
53638
53629
  cursor: pointer;
53639
53630
  }
53640
- :host kol-input.disabled :is(.input, label),
53641
- :host kol-input.disabled input[type='checkbox']::before {
53642
- cursor: not-allowed;
53643
- }
53644
53631
  .required label > span::after {
53645
53632
  content: '*';
53646
53633
  padding-left: 0.125em;
@@ -53684,9 +53671,6 @@ const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
53684
53671
  background-color: white;
53685
53672
  transition: 0.5s;
53686
53673
  }
53687
- input[type='checkbox']:before {
53688
- content: '';
53689
- }
53690
53674
  input[type='checkbox']:checked,
53691
53675
  input[type='checkbox']:indeterminate {
53692
53676
  background-color: var(--color-blau);
@@ -53698,44 +53682,19 @@ const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
53698
53682
  min-width: calc(6 * var(--spacing));
53699
53683
  width: calc(6 * var(--spacing));
53700
53684
  }
53701
- .default input[type='checkbox']:before {
53702
- border-radius: 0.25em;
53703
- background-color: transparent;
53704
- display: block;
53705
- height: calc(6 * var(--spacing));
53706
- position: relative;
53707
- width: calc(6 * var(--spacing));
53708
- }
53709
- .default input[type='checkbox']:checked:before {
53710
- border-right-width: 3px;
53711
- border-bottom-width: 3px;
53712
- left: calc(1.5 * var(--spacing) - 2px);
53713
- top: calc(2.85 * var(--spacing) - 2px);
53714
- transform: rotate(40deg) translate(-50%, -50%);
53715
- background-color: transparent;
53716
- border-width: 0px 3px 3px 0px;
53717
- border-color: white;
53718
- border-radius: 1px;
53719
- border-style: solid;
53720
- height: calc(3 * var(--spacing));
53721
- width: calc(1.5 * var(--spacing));
53722
- }
53723
53685
  .default input[type='checkbox']:indeterminate {
53724
53686
  background-color: var(--color-blau);
53725
53687
  }
53726
- .default input[type='checkbox']:indeterminate:before {
53727
- background-color: white;
53728
- height: 0.25rem;
53729
- top: 0.5rem;
53730
- left: 0.25rem;
53731
- width: 0.75rem;
53688
+ .default .icon {
53689
+ color: #fff;
53690
+ margin-left: 0.25rem;
53732
53691
  }
53733
53692
  .switch input[type='checkbox'] {
53693
+ display: block;
53734
53694
  min-width: 3.2em;
53735
53695
  width: 3.2em;
53736
53696
  height: 1.7em;
53737
53697
  border-radius: 0.25em;
53738
- display: inline-block;
53739
53698
  position: relative;
53740
53699
  }
53741
53700
  .switch input[type='checkbox']:before {
@@ -53768,12 +53727,19 @@ const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
53768
53727
  transform: translateX(0.75em);
53769
53728
  background-color: white;
53770
53729
  }
53771
- .switch:has(input:not(:checked, :indeterminate)) .icon {
53730
+ .switch:not(.checked):not(.indeterminate) .icon {
53772
53731
  color: #fff;
53773
53732
  }
53774
53733
  .disabled {
53775
53734
  opacity: 0.33;
53776
53735
  }
53736
+ .button:focus-within {
53737
+ border-radius: var(--border-radius);
53738
+ outline-color: var(--color-blau-dark);
53739
+ outline-offset: 0.125rem;
53740
+ outline-style: solid;
53741
+ outline-width: 0.125rem;
53742
+ }
53777
53743
  `,
53778
53744
  "KOL-INPUT-RADIO": css`
53779
53745
  /* ALL INPUT, SELECT, TEXTAREA */
@@ -53789,12 +53755,13 @@ const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
53789
53755
  border-width: 2px;
53790
53756
  border-style: solid;
53791
53757
  }
53792
- kol-input:has(input:disabled) input,
53793
- kol-input:has(input:disabled) label {
53758
+
53759
+ kol-input.disabled input,
53760
+ kol-input.disabled label {
53794
53761
  cursor: not-allowed !important;
53795
53762
  opacity: 0.5;
53796
53763
  }
53797
- kol-input:hover:has(input:not(:disabled)) label,
53764
+ kol-input:hover:not(.disabled) label,
53798
53765
  kol-input:focus-within {
53799
53766
  text-decoration: underline;
53800
53767
  }
@@ -53849,7 +53816,7 @@ const ZOLLv2 = KoliBri.createTheme("zoll-v2", {
53849
53816
  box-shadow: 0 0 0.1rem black;
53850
53817
  background-color: var(--color-blau);
53851
53818
  }
53852
- fieldset #error {
53819
+ kol-alert.error {
53853
53820
  margin: 0.4em 0;
53854
53821
  order: 3;
53855
53822
  }