@otto-de/b2b-core-components 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  2. package/dist/b2b-core-components/p-2672e477.entry.js +1 -0
  3. package/dist/b2b-core-components/p-3651b482.entry.js +1 -0
  4. package/dist/cjs/b2b-radio-button.cjs.entry.js +11 -10
  5. package/dist/cjs/b2b-toggle-button.cjs.entry.js +1 -1
  6. package/dist/collection/components/alert/alert.css +2 -2
  7. package/dist/collection/components/anchor/anchor.css +2 -2
  8. package/dist/collection/components/button/button.css +2 -2
  9. package/dist/collection/components/checkbox/checkbox.css +2 -2
  10. package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
  11. package/dist/collection/components/dropdown/dropdown.css +2 -2
  12. package/dist/collection/components/headline/headline.css +2 -2
  13. package/dist/collection/components/icon/icon.css +2 -2
  14. package/dist/collection/components/input/input.css +2 -2
  15. package/dist/collection/components/input-group/input-group.css +2 -2
  16. package/dist/collection/components/input-list/input-list.css +2 -2
  17. package/dist/collection/components/label/label.css +2 -2
  18. package/dist/collection/components/modal/modal.css +2 -2
  19. package/dist/collection/components/pagination/pagination.css +2 -2
  20. package/dist/collection/components/paragraph/paragraph.css +2 -2
  21. package/dist/collection/components/radio/radio.css +2 -2
  22. package/dist/collection/components/radio/radio.js +11 -10
  23. package/dist/collection/components/radio-group/radio-group.css +2 -2
  24. package/dist/collection/components/required-separator/required-separator.css +2 -2
  25. package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
  26. package/dist/collection/components/separator/separator.css +2 -2
  27. package/dist/collection/components/spinner/spinner.css +2 -2
  28. package/dist/collection/components/tab/tab.css +2 -2
  29. package/dist/collection/components/tab-panel/tab-panel.css +2 -2
  30. package/dist/collection/components/table/table-cell/table-cell.css +2 -2
  31. package/dist/collection/components/table/table-header/table-header.css +2 -2
  32. package/dist/collection/components/table/table-row/table-row.css +2 -2
  33. package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
  34. package/dist/collection/components/table/table.css +2 -2
  35. package/dist/collection/components/textarea/textarea.css +2 -2
  36. package/dist/collection/components/toggle-button/toggle-button.css +2 -2
  37. package/dist/collection/components/toggle-button/toggle-button.js +1 -1
  38. package/dist/collection/components/toggle-group/toggle-group.css +2 -2
  39. package/dist/collection/components/tooltip/tooltip.css +2 -2
  40. package/dist/components/b2b-radio-button.js +11 -10
  41. package/dist/components/b2b-toggle-button.js +1 -1
  42. package/dist/esm/b2b-radio-button.entry.js +11 -10
  43. package/dist/esm/b2b-toggle-button.entry.js +1 -1
  44. package/dist/web-types.json +1 -1
  45. package/package.json +8 -4
  46. package/dist/b2b-core-components/p-644c602b.entry.js +0 -1
  47. package/dist/b2b-core-components/p-bfdc3e1d.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-6000aa40.js";export{s as setNonce}from"./p-6000aa40.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((e=>a([["p-9cab38a6",[[1,"b2b-search",{placeholder:[1],optionsList:[16],value:[1537],closed:[32]}]]],["p-5b40beba",[[1,"b2b-modal",{heading:[1],opened:[1540],backdropDismiss:[4,"backdrop-dismiss"],escDismiss:[4,"esc-dismiss"],variant:[1],iconHover:[32],isOpen:[32]},[[0,"keydown","handleKeypress"]]]]],["p-72c780a5",[[1,"b2b-pagination",{totalPages:[2,"total-pages"],activePage:[1538,"active-page"],ariaLabelNextPage:[1,"aria-label-next-page"],ariaLabelPreviousPage:[1,"aria-label-previous-page"]}]]],["p-7149e60c",[[1,"b2b-alert",{type:[1],size:[1],opened:[1028],hasCloseButton:[4,"has-close-button"],customIcon:[4,"custom-icon"]}]]],["p-dfa3663c",[[1,"b2b-checkbox",{label:[1],required:[516],checked:[1540],disabled:[516],error:[1],hint:[1],name:[513],value:[520],invalid:[4]}]]],["p-9f670297",[[1,"b2b-checkbox-group",{label:[1],required:[4],disabled:[4],invalid:[4],alignment:[1],hint:[1],error:[1]},[[0,"b2b-change","handleCheckboxChange"]]]]],["p-7e28e0f2",[[1,"b2b-dropdown",{label:[1],required:[516],name:[513],disabled:[516],invalid:[516],hint:[1],error:[1]}]]],["p-644c602b",[[1,"b2b-radio-button",{label:[1],required:[516],name:[513],checked:[1540],disabled:[516],invalid:[4],value:[513],hint:[1],error:[1]}]]],["p-3cbf9cd2",[[1,"b2b-radio-group",{name:[1],label:[1],required:[4],alignment:[1],disabled:[516],invalid:[516],hint:[1],error:[1],currentValue:[32]},[[0,"b2b-change","handleRadioButtonChange"]]]]],["p-ff4d56aa",[[1,"b2b-required-separator",{label:[1]}]]],["p-893f600f",[[1,"b2b-tab-group",{useRouter:[4,"use-router"]},[[0,"click","handleClick"],[0,"keydown","handleKeydown"]]]]],["p-41e83c36",[[1,"b2b-textarea",{label:[1],required:[516],placeholder:[513],disabled:[516],invalid:[516],autofocus:[516],resize:[513],hint:[1],error:[1],value:[1537],name:[513],maxLength:[514,"max-length"]}]]],["p-5048bec7",[[1,"b2b-anchor",{href:[1],download:[1],target:[1],size:[1]}]]],["p-a1832e33",[[1,"b2b-grid",{margin:[2]}]]],["p-ad2548ba",[[1,"b2b-grid-col",{span:[514],textAlign:[1,"text-align"]}]]],["p-6dc0211c",[[1,"b2b-grid-row",{columnGap:[2,"column-gap"],rowGap:[2,"row-gap"],alignItems:[1,"align-items"],justify:[1]}]]],["p-ee1d70fc",[[1,"b2b-label",{type:[1]}]]],["p-5b1bc987",[[1,"b2b-paragraph",{weight:[1],size:[1],align:[1]}]]],["p-977d2fff",[[1,"b2b-scrollable-container"]]],["p-84608432",[[1,"b2b-tab",{selected:[516],disabled:[4],invalid:[4]}]]],["p-c2855f32",[[1,"b2b-tab-panel"]]],["p-414fef03",[[1,"b2b-table",{size:[1]},[[0,"b2b-change","onColumnSelected"]]]]],["p-cfdb21b6",[[1,"b2b-table-cell",{textWrap:[516,"text-wrap"],size:[1],align:[1],divider:[4],color:[1],useTextEllipsis:[32]}]]],["p-81a32656",[[1,"b2b-table-header",{divider:[4],fixed:[4],sortDirection:[1537,"sort-direction"],sortId:[1,"sort-id"],active:[32]}]]],["p-b35d3924",[[1,"b2b-table-row",{highlight:[4],color:[1]}]]],["p-4cc68a17",[[1,"b2b-table-rowgroup",{type:[1]}]]],["p-bfdc3e1d",[[1,"b2b-toggle-button",{label:[1],name:[513],checked:[1540],disabled:[516],value:[513]}]]],["p-ca2722e8",[[1,"b2b-toggle-group",{name:[1],disabled:[516],currentValue:[32]},[[0,"b2b-change","handleToggleButtonChange"]]]]],["p-c8585513",[[1,"b2b-tooltip",{position:[1],content:[1],trigger:[1],opened:[1540]}]]],["p-2125ea38",[[1,"b2b-headline",{size:[1],align:[1],noMargin:[4,"no-margin"]}]]],["p-22cc8a9f",[[1,"b2b-input-label",{required:[4],disabled:[4]}]]],["p-99d63c7c",[[1,"b2b-input",{label:[1],required:[516],type:[513],disabled:[516],invalid:[516],placeholder:[513],value:[1537],name:[513],hint:[1],error:[1],autofocus:[4],hasFocus:[32],hasTextPrefix:[32],hasTextSuffix:[32],setFocus:[64],clearInput:[64]}],[0,"b2b-input-list-option",{option:[1]},[[0,"keydown","handleKeyDown"]]]]],["p-f6105da5",[[1,"b2b-input-list",{label:[1],required:[516],placeholder:[513],optionsList:[16],value:[1537],hasOptionList:[32],isElementFocused:[32]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-input-group",{invalid:[4],disabled:[4],error:[1],hint:[1]}]]],["p-66399e78",[[1,"b2b-separator",{alignment:[1]}]]],["p-da6ddbb2",[[1,"b2b-icon",{icon:[1],color:[1],size:[1],pathData:[32]}]]],["p-c8ec3c18",[[1,"b2b-button",{variant:[1],type:[1],size:[1],disabled:[516],loading:[4],active:[516],href:[1],target:[1],download:[1],setFocus:[64]},[[2,"click","handleHostClick"]]],[1,"b2b-spinner",{size:[1],color:[1]}]]]],e)));
1
+ import{p as e,b as a}from"./p-6000aa40.js";export{s as setNonce}from"./p-6000aa40.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((e=>a([["p-9cab38a6",[[1,"b2b-search",{placeholder:[1],optionsList:[16],value:[1537],closed:[32]}]]],["p-5b40beba",[[1,"b2b-modal",{heading:[1],opened:[1540],backdropDismiss:[4,"backdrop-dismiss"],escDismiss:[4,"esc-dismiss"],variant:[1],iconHover:[32],isOpen:[32]},[[0,"keydown","handleKeypress"]]]]],["p-72c780a5",[[1,"b2b-pagination",{totalPages:[2,"total-pages"],activePage:[1538,"active-page"],ariaLabelNextPage:[1,"aria-label-next-page"],ariaLabelPreviousPage:[1,"aria-label-previous-page"]}]]],["p-7149e60c",[[1,"b2b-alert",{type:[1],size:[1],opened:[1028],hasCloseButton:[4,"has-close-button"],customIcon:[4,"custom-icon"]}]]],["p-dfa3663c",[[1,"b2b-checkbox",{label:[1],required:[516],checked:[1540],disabled:[516],error:[1],hint:[1],name:[513],value:[520],invalid:[4]}]]],["p-9f670297",[[1,"b2b-checkbox-group",{label:[1],required:[4],disabled:[4],invalid:[4],alignment:[1],hint:[1],error:[1]},[[0,"b2b-change","handleCheckboxChange"]]]]],["p-7e28e0f2",[[1,"b2b-dropdown",{label:[1],required:[516],name:[513],disabled:[516],invalid:[516],hint:[1],error:[1]}]]],["p-3651b482",[[1,"b2b-radio-button",{label:[1],required:[516],name:[513],checked:[1540],disabled:[516],invalid:[4],value:[513],hint:[1],error:[1]}]]],["p-3cbf9cd2",[[1,"b2b-radio-group",{name:[1],label:[1],required:[4],alignment:[1],disabled:[516],invalid:[516],hint:[1],error:[1],currentValue:[32]},[[0,"b2b-change","handleRadioButtonChange"]]]]],["p-ff4d56aa",[[1,"b2b-required-separator",{label:[1]}]]],["p-893f600f",[[1,"b2b-tab-group",{useRouter:[4,"use-router"]},[[0,"click","handleClick"],[0,"keydown","handleKeydown"]]]]],["p-41e83c36",[[1,"b2b-textarea",{label:[1],required:[516],placeholder:[513],disabled:[516],invalid:[516],autofocus:[516],resize:[513],hint:[1],error:[1],value:[1537],name:[513],maxLength:[514,"max-length"]}]]],["p-5048bec7",[[1,"b2b-anchor",{href:[1],download:[1],target:[1],size:[1]}]]],["p-a1832e33",[[1,"b2b-grid",{margin:[2]}]]],["p-ad2548ba",[[1,"b2b-grid-col",{span:[514],textAlign:[1,"text-align"]}]]],["p-6dc0211c",[[1,"b2b-grid-row",{columnGap:[2,"column-gap"],rowGap:[2,"row-gap"],alignItems:[1,"align-items"],justify:[1]}]]],["p-ee1d70fc",[[1,"b2b-label",{type:[1]}]]],["p-5b1bc987",[[1,"b2b-paragraph",{weight:[1],size:[1],align:[1]}]]],["p-977d2fff",[[1,"b2b-scrollable-container"]]],["p-84608432",[[1,"b2b-tab",{selected:[516],disabled:[4],invalid:[4]}]]],["p-c2855f32",[[1,"b2b-tab-panel"]]],["p-414fef03",[[1,"b2b-table",{size:[1]},[[0,"b2b-change","onColumnSelected"]]]]],["p-cfdb21b6",[[1,"b2b-table-cell",{textWrap:[516,"text-wrap"],size:[1],align:[1],divider:[4],color:[1],useTextEllipsis:[32]}]]],["p-81a32656",[[1,"b2b-table-header",{divider:[4],fixed:[4],sortDirection:[1537,"sort-direction"],sortId:[1,"sort-id"],active:[32]}]]],["p-b35d3924",[[1,"b2b-table-row",{highlight:[4],color:[1]}]]],["p-4cc68a17",[[1,"b2b-table-rowgroup",{type:[1]}]]],["p-2672e477",[[1,"b2b-toggle-button",{label:[1],name:[513],checked:[1540],disabled:[516],value:[513]}]]],["p-ca2722e8",[[1,"b2b-toggle-group",{name:[1],disabled:[516],currentValue:[32]},[[0,"b2b-change","handleToggleButtonChange"]]]]],["p-c8585513",[[1,"b2b-tooltip",{position:[1],content:[1],trigger:[1],opened:[1540]}]]],["p-2125ea38",[[1,"b2b-headline",{size:[1],align:[1],noMargin:[4,"no-margin"]}]]],["p-22cc8a9f",[[1,"b2b-input-label",{required:[4],disabled:[4]}]]],["p-99d63c7c",[[1,"b2b-input",{label:[1],required:[516],type:[513],disabled:[516],invalid:[516],placeholder:[513],value:[1537],name:[513],hint:[1],error:[1],autofocus:[4],hasFocus:[32],hasTextPrefix:[32],hasTextSuffix:[32],setFocus:[64],clearInput:[64]}],[0,"b2b-input-list-option",{option:[1]},[[0,"keydown","handleKeyDown"]]]]],["p-f6105da5",[[1,"b2b-input-list",{label:[1],required:[516],placeholder:[513],optionsList:[16],value:[1537],hasOptionList:[32],isElementFocused:[32]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-input-group",{invalid:[4],disabled:[4],error:[1],hint:[1]}]]],["p-66399e78",[[1,"b2b-separator",{alignment:[1]}]]],["p-da6ddbb2",[[1,"b2b-icon",{icon:[1],color:[1],size:[1],pathData:[32]}]]],["p-c8ec3c18",[[1,"b2b-button",{variant:[1],type:[1],size:[1],disabled:[516],loading:[4],active:[516],href:[1],target:[1],download:[1],setFocus:[64]},[[2,"click","handleHostClick"]]],[1,"b2b-spinner",{size:[1],color:[1]}]]]],e)));
@@ -0,0 +1 @@
1
+ import{r as b,c as e,h as o,H as r,g as i}from"./p-6000aa40.js";const t=class{constructor(o){b(this,o),this.b2bChange=e(this,"b2b-change",7),this.onClick=b=>{if(b.preventDefault(),this.disabled||this.checked)return;this.checked=!0,this.uncheckSiblings(),this.b2bChange.emit({value:this.value});const e=new globalThis.Event("change");this.host.dispatchEvent(e)},this.uncheckSiblings=()=>{this.getSiblingToggles().forEach((b=>{b.checked=!1}))},this.label=void 0,this.name=void 0,this.checked=!1,this.disabled=!1,this.value=void 0}getSiblingToggles(){return Array.from(document.querySelectorAll(`b2b-toggle-button[name="${this.name}"]`)).filter((b=>b.value!==this.value))}render(){return o(r,{onClick:this.onClick},o("span",{class:{"b2b-toggle-button":!0,"b2b-toggle-button--disabled":this.disabled}},o("input",{tabindex:0,class:{"b2b-toggle-button-input":!0,"b2b-toggle-button-input--disabled":this.disabled},"aria-labelledby":this.name,type:"radio",checked:this.checked&&!this.disabled,disabled:this.disabled,name:this.name,value:this.value}),o("label",{id:this.name,tabindex:-1,class:{"b2b-toggle-button-label":!0,"b2b-toggle-button-label--disabled":this.disabled,"b2b-toggle-button-label--checked":this.checked&&!this.disabled}},this.label)))}get host(){return i(this)}};t.style=':root,:host{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-table-hover:#e6f4ff;--b2b-color-background-overlay-transparent-40:rgba(34, 34, 34, 0.25);--b2b-color-background-overlay-transparent-80:rgba(34, 34, 34, 0.5);--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-size-headline-line-height-400:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-45);--b2b-size-headline-line-height-100:var(--b2b-size-40);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-75:var(--b2b-size-30);--b2b-size-copy-50:var(--b2b-size-25);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-50:var(--b2b-size-40);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-25);--b2b-color-error-50:var(--b2b-color-red-50)}:root [data-theme="dark"]{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-color-icon-inverted:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-error-50:var(--b2b-color-red-50)}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff") format("woff"), url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf") format("truetype");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff") format("woff"), url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf") format("truetype");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff")}:host{--b2b-border-radius:var(--b2b-size-border-radius-100);--b2b-border-right:1px solid var(--b2b-color-grey-200);font-family:var(--b2b-font-family-default);font-size:var(--b2b-size-35);line-height:var(--b2b-size-copy-line-height-75);position:relative;margin:0}:host .b2b-toggle-button-input{border:0;clip:rect(0, 0, 0, 0);height:1px;overflow:hidden;position:absolute !important;width:1px}:host .b2b-toggle-button-label{display:inline-block;position:relative;box-sizing:border-box;font-family:OttoSans, Arial, Helvetica, sans-serif;line-height:1.75rem;transition:all 0.3s ease;background-color:var(--b2b-color-grey-50);border:1px solid var(--b2b-color-grey-200);border-radius:var(--b2b-border-radius);border-right:var(--b2b-border-right);cursor:pointer;text-align:center;text-decoration:none;padding:0 var(--b2b-size-20)}:host .b2b-toggle-button-label:hover{background-color:var(--b2b-color-grey-200)}:host .b2b-toggle-button-input:focus+label{outline:2px solid -webkit-focus-ring-color;z-index:1;transition:none}:host .b2b-toggle-button-input--disabled:focus+label{outline:none}:host .b2b-toggle-button-label--checked,:host .b2b-toggle-button-label--checked:hover{color:var(--b2b-color-white-100);background-color:var(--b2b-color-black-50);border-color:var(--b2b-color-black-50)}:host .b2b-toggle-button-label--disabled,:host .b2b-toggle-button-label--disabled:hover{pointer-events:none;color:var(--b2b-color-grey-250);border-color:var(--b2b-color-grey-100);border-left:var(--b2b-border-left);background-color:var(--b2b-color-grey-50)}';export{t as b2b_toggle_button}
@@ -0,0 +1 @@
1
+ import{r as b,c as r,h as e,H as o,g as i}from"./p-6000aa40.js";const s=class{constructor(e){b(this,e),this.b2bFocus=r(this,"b2b-focus",7),this.b2bBlur=r(this,"b2b-blur",7),this.b2bChange=r(this,"b2b-change",7),this.handleFormData=b=>{null!=this.name&&this.checked&&b.formData.append(this.name,this.value||"")},this.onClick=()=>{if(this.disabled||this.checked)return;this.checked=!0,this.uncheckSiblings(),this.b2bChange.emit({checked:this.checked,value:this.value});const b=new globalThis.Event("change");this.host.dispatchEvent(b)},this.uncheckSiblings=()=>{this.getSiblingRadios().forEach((b=>{b.checked=!1}))},this.onBlur=()=>{this.b2bBlur.emit()},this.onFocus=()=>{this.b2bFocus.emit()},this.label=void 0,this.required=!1,this.name=void 0,this.checked=!1,this.disabled=!1,this.invalid=!1,this.value=void 0,this.hint=void 0,this.error=void 0}connectedCallback(){const b=this.host.closest("form");null!=b&&b.addEventListener("formdata",this.handleFormData)}getSiblingRadios(){return Array.from(document.querySelectorAll(`b2b-radio-button[name="${this.name}"]`)).filter((b=>b.value!==this.value))}render(){return e(o,{onClick:this.onClick},e("div",{class:{"b2b-radio":!0,"b2b-radio--error":this.invalid&&!this.disabled,"b2b-radio--disabled":this.disabled}},e("div",{class:"b2b-radio-items"},e("input",{class:"b2b-radio-input","aria-labelledby":this.name,type:"radio",checked:this.checked,disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,value:this.value}),e("b2b-input-label",{id:this.name,required:this.required,disabled:this.disabled},this.label)),void 0!==this.hint&&!this.invalid||void 0!==this.hint&&this.disabled?e("span",null,this.hint):"",void 0!==this.error&&this.invalid&&!this.disabled?e("span",null,this.error):""))}get host(){return i(this)}};s.style=':root,:host{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-table-hover:#e6f4ff;--b2b-color-background-overlay-transparent-40:rgba(34, 34, 34, 0.25);--b2b-color-background-overlay-transparent-80:rgba(34, 34, 34, 0.5);--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-size-headline-line-height-400:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-45);--b2b-size-headline-line-height-100:var(--b2b-size-40);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-75:var(--b2b-size-30);--b2b-size-copy-50:var(--b2b-size-25);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-50:var(--b2b-size-40);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-25);--b2b-color-error-50:var(--b2b-color-red-50)}:root [data-theme="dark"]{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-color-icon-inverted:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-error-50:var(--b2b-color-red-50)}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff") format("woff"), url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf") format("truetype");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff") format("woff"), url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf") format("truetype");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff")}.b2b-radio{font-family:var(--b2b-font-family-default);font-size:var(--b2b-size-copy-100);width:fit-content;margin-bottom:var(--b2b-size-5);margin-right:var(--b2b-size-60)}.b2b-radio-items{display:flex;justify-content:flex-start}.b2b-radio-input{appearance:none;border-radius:50%;display:inline-block;position:relative;vertical-align:top;box-shadow:inset 0 1px 0 var(--b2b-color-grey-400), inset 0 -1px 0 var(--b2b-color-grey-400), inset -1px 0 0 var(--b2b-color-grey-400), inset 1px 0 0 var(--b2b-color-grey-400);width:var(--b2b-size-40);height:var(--b2b-size-40);padding:0;margin:var(--b2b-size-5) var(--b2b-size-15) 3px 0;flex-shrink:0}.b2b-radio-input:checked{background-color:var(--b2b-color-black-50);box-shadow:inset 0 1px 0 var(--b2b-color-black-50), inset 0 -1px 0 var(--b2b-color-black-50), inset -1px 0 0 var(--b2b-color-black-50), inset 1px 0 0 var(--b2b-color-black-50)}.b2b-radio-input:checked::after{content:" ";display:block;position:relative;background-color:var(--b2b-color-white-100);border-radius:50%;top:25%;left:25%;width:50%;height:50%}.b2b-radio b2b-input-label{user-select:none}.b2b-radio span{font-size:var(--b2b-size-copy-75);line-height:var(--b2b-size-copy-line-height-75);color:var(--b2b-color-grey-300);display:block;margin-top:1px}.b2b-radio--error .b2b-radio-input{background-color:var(--b2b-color-error-50);box-shadow:inset 0 1px 0 var(--b2b-color-error-100), inset 0 -1px 0 var(--b2b-color-error-100), inset -1px 0 0 var(--b2b-color-error-100), inset 1px 0 0 var(--b2b-color-error-100)}.b2b-radio--error .b2b-radio-input:checked::after{background-color:var(--b2b-color-error-100)}.b2b-radio--error span{color:var(--b2b-color-error-100)}.b2b-radio--disabled .b2b-radio-input{box-shadow:inset 0 1px 0 var(--b2b-color-grey-300), inset 0 -1px 0 var(--b2b-color-grey-300), inset -1px 0 0 var(--b2b-color-grey-300), inset 1px 0 0 var(--b2b-color-grey-300)}.b2b-radio--disabled .b2b-radio-input:checked{background-color:var(--b2b-color-grey-300)}';export{s as b2b_radio_button}
@@ -19,18 +19,19 @@ const B2bRadioButtonComponent = class {
19
19
  }
20
20
  };
21
21
  this.onClick = () => {
22
+ if (this.disabled || this.checked) {
23
+ return;
24
+ }
22
25
  this.checked = true;
23
26
  this.uncheckSiblings();
24
- if (this.checked) {
25
- this.b2bChange.emit({
26
- checked: this.checked,
27
- value: this.value,
28
- });
29
- // Dispatches the native change event because it is not propagated beyond the shadow boundary
30
- // globalThis to target the lib.dom Event and not Stencil Event
31
- const changeEvent = new globalThis.Event('change');
32
- this.host.dispatchEvent(changeEvent);
33
- }
27
+ this.b2bChange.emit({
28
+ checked: this.checked,
29
+ value: this.value,
30
+ });
31
+ // Dispatches the native change event because it is not propagated beyond the shadow boundary
32
+ // globalThis to target the lib.dom Event and not Stencil Event
33
+ const changeEvent = new globalThis.Event('change');
34
+ this.host.dispatchEvent(changeEvent);
34
35
  };
35
36
  this.uncheckSiblings = () => {
36
37
  this.getSiblingRadios().forEach((radio) => {
@@ -12,7 +12,7 @@ const B2bToggleButtonComponent = class {
12
12
  this.b2bChange = index.createEvent(this, "b2b-change", 7);
13
13
  this.onClick = (ev) => {
14
14
  ev.preventDefault();
15
- if (this.disabled) {
15
+ if (this.disabled || this.checked) {
16
16
  return;
17
17
  }
18
18
  this.checked = true;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -8,18 +8,19 @@ export class B2bRadioButtonComponent {
8
8
  }
9
9
  };
10
10
  this.onClick = () => {
11
+ if (this.disabled || this.checked) {
12
+ return;
13
+ }
11
14
  this.checked = true;
12
15
  this.uncheckSiblings();
13
- if (this.checked) {
14
- this.b2bChange.emit({
15
- checked: this.checked,
16
- value: this.value,
17
- });
18
- // Dispatches the native change event because it is not propagated beyond the shadow boundary
19
- // globalThis to target the lib.dom Event and not Stencil Event
20
- const changeEvent = new globalThis.Event('change');
21
- this.host.dispatchEvent(changeEvent);
22
- }
16
+ this.b2bChange.emit({
17
+ checked: this.checked,
18
+ value: this.value,
19
+ });
20
+ // Dispatches the native change event because it is not propagated beyond the shadow boundary
21
+ // globalThis to target the lib.dom Event and not Stencil Event
22
+ const changeEvent = new globalThis.Event('change');
23
+ this.host.dispatchEvent(changeEvent);
23
24
  };
24
25
  this.uncheckSiblings = () => {
25
26
  this.getSiblingRadios().forEach((radio) => {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -3,7 +3,7 @@ export class B2bToggleButtonComponent {
3
3
  constructor() {
4
4
  this.onClick = (ev) => {
5
5
  ev.preventDefault();
6
- if (this.disabled) {
6
+ if (this.disabled || this.checked) {
7
7
  return;
8
8
  }
9
9
  this.checked = true;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 May 2023 14:29:23 GMT
3
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
4
4
  */
5
5
  :root, :host {
6
6
  --b2b-size-200: 5rem; /* 80px */
@@ -123,7 +123,7 @@
123
123
  }
124
124
  /**
125
125
  * Do not edit directly
126
- * Generated on Tue, 16 May 2023 14:29:23 GMT
126
+ * Generated on Thu, 25 May 2023 12:11:57 GMT
127
127
  */
128
128
  :root [data-theme="dark"] {
129
129
  --b2b-size-200: 5rem; /* 80px */
@@ -18,18 +18,19 @@ const B2bRadioButtonComponent = /*@__PURE__*/ proxyCustomElement(class extends H
18
18
  }
19
19
  };
20
20
  this.onClick = () => {
21
+ if (this.disabled || this.checked) {
22
+ return;
23
+ }
21
24
  this.checked = true;
22
25
  this.uncheckSiblings();
23
- if (this.checked) {
24
- this.b2bChange.emit({
25
- checked: this.checked,
26
- value: this.value,
27
- });
28
- // Dispatches the native change event because it is not propagated beyond the shadow boundary
29
- // globalThis to target the lib.dom Event and not Stencil Event
30
- const changeEvent = new globalThis.Event('change');
31
- this.host.dispatchEvent(changeEvent);
32
- }
26
+ this.b2bChange.emit({
27
+ checked: this.checked,
28
+ value: this.value,
29
+ });
30
+ // Dispatches the native change event because it is not propagated beyond the shadow boundary
31
+ // globalThis to target the lib.dom Event and not Stencil Event
32
+ const changeEvent = new globalThis.Event('change');
33
+ this.host.dispatchEvent(changeEvent);
33
34
  };
34
35
  this.uncheckSiblings = () => {
35
36
  this.getSiblingRadios().forEach((radio) => {
@@ -10,7 +10,7 @@ const B2bToggleButtonComponent = /*@__PURE__*/ proxyCustomElement(class extends
10
10
  this.b2bChange = createEvent(this, "b2b-change", 7);
11
11
  this.onClick = (ev) => {
12
12
  ev.preventDefault();
13
- if (this.disabled) {
13
+ if (this.disabled || this.checked) {
14
14
  return;
15
15
  }
16
16
  this.checked = true;
@@ -15,18 +15,19 @@ const B2bRadioButtonComponent = class {
15
15
  }
16
16
  };
17
17
  this.onClick = () => {
18
+ if (this.disabled || this.checked) {
19
+ return;
20
+ }
18
21
  this.checked = true;
19
22
  this.uncheckSiblings();
20
- if (this.checked) {
21
- this.b2bChange.emit({
22
- checked: this.checked,
23
- value: this.value,
24
- });
25
- // Dispatches the native change event because it is not propagated beyond the shadow boundary
26
- // globalThis to target the lib.dom Event and not Stencil Event
27
- const changeEvent = new globalThis.Event('change');
28
- this.host.dispatchEvent(changeEvent);
29
- }
23
+ this.b2bChange.emit({
24
+ checked: this.checked,
25
+ value: this.value,
26
+ });
27
+ // Dispatches the native change event because it is not propagated beyond the shadow boundary
28
+ // globalThis to target the lib.dom Event and not Stencil Event
29
+ const changeEvent = new globalThis.Event('change');
30
+ this.host.dispatchEvent(changeEvent);
30
31
  };
31
32
  this.uncheckSiblings = () => {
32
33
  this.getSiblingRadios().forEach((radio) => {
@@ -8,7 +8,7 @@ const B2bToggleButtonComponent = class {
8
8
  this.b2bChange = createEvent(this, "b2b-change", 7);
9
9
  this.onClick = (ev) => {
10
10
  ev.preventDefault();
11
- if (this.disabled) {
11
+ if (this.disabled || this.checked) {
12
12
  return;
13
13
  }
14
14
  this.checked = true;
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@otto-de/b2b-core-components",
5
- "version": "1.0.1",
5
+ "version": "1.1.0",
6
6
  "js-types-syntax": "typescript",
7
7
  "description-markup": "markdown",
8
8
  "contributions": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto-de/b2b-core-components",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Core components defined with Stencil",
5
5
  "author": "Otto GmbH",
6
6
  "license": "Apache-2.0",
@@ -33,11 +33,14 @@
33
33
  "lint": "eslint \"src/**/*{.ts,.tsx}\" && stylelint \"src/**/*{.scss,.css}\"",
34
34
  "lint:fix": "eslint \"src/**/*{.ts,.tsx}\" --fix && stylelint \"src/**/*{.scss,.css}\" --fix",
35
35
  "format": "prettier --ignore-path .gitignore --write \"**/*.+(js|json|ts|tsx)\"",
36
- "storybook": "start-storybook -p 6006",
37
- "build:storybook": "build-storybook -o docs-build/design-system"
36
+ "copy-md-changelog": "copyfiles --flat ../../CHANGELOG.md src/docs/getting-started",
37
+ "copy-md-guidelines": "copyfiles --flat ../../DEV-GUIDELINES.md src/docs/guidelines",
38
+ "copy-md-files": "npm run copy-md-changelog && npm run copy-md-guidelines",
39
+ "storybook": "npm run copy-md-files && start-storybook -p 6006",
40
+ "build:storybook": "npm run copy-md-files && build-storybook -o docs-build/design-system"
38
41
  },
39
42
  "dependencies": {
40
- "@otto-de/b2b-tokens": "1.1.0",
43
+ "@otto-de/b2b-tokens": "1.2.0",
41
44
  "@stencil-community/eslint-plugin": "^0.5.0",
42
45
  "@stencil/core": "^3.0.1"
43
46
  },
@@ -62,6 +65,7 @@
62
65
  "@types/jest": "^27.5.2",
63
66
  "@types/mdx": "^2.0.4",
64
67
  "@types/postcss-import": "^14.0.0",
68
+ "copyfiles": "^2.4.1",
65
69
  "css-loader": "^6.7.3",
66
70
  "eslint": "^8.36.0",
67
71
  "eslint-config-prettier": "^8.7.0",
@@ -1 +0,0 @@
1
- import{r as b,c as r,h as e,H as o,g as i}from"./p-6000aa40.js";const s=class{constructor(e){b(this,e),this.b2bFocus=r(this,"b2b-focus",7),this.b2bBlur=r(this,"b2b-blur",7),this.b2bChange=r(this,"b2b-change",7),this.handleFormData=b=>{null!=this.name&&this.checked&&b.formData.append(this.name,this.value||"")},this.onClick=()=>{if(this.checked=!0,this.uncheckSiblings(),this.checked){this.b2bChange.emit({checked:this.checked,value:this.value});const b=new globalThis.Event("change");this.host.dispatchEvent(b)}},this.uncheckSiblings=()=>{this.getSiblingRadios().forEach((b=>{b.checked=!1}))},this.onBlur=()=>{this.b2bBlur.emit()},this.onFocus=()=>{this.b2bFocus.emit()},this.label=void 0,this.required=!1,this.name=void 0,this.checked=!1,this.disabled=!1,this.invalid=!1,this.value=void 0,this.hint=void 0,this.error=void 0}connectedCallback(){const b=this.host.closest("form");null!=b&&b.addEventListener("formdata",this.handleFormData)}getSiblingRadios(){return Array.from(document.querySelectorAll(`b2b-radio-button[name="${this.name}"]`)).filter((b=>b.value!==this.value))}render(){return e(o,{onClick:this.onClick},e("div",{class:{"b2b-radio":!0,"b2b-radio--error":this.invalid&&!this.disabled,"b2b-radio--disabled":this.disabled}},e("div",{class:"b2b-radio-items"},e("input",{class:"b2b-radio-input","aria-labelledby":this.name,type:"radio",checked:this.checked,disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,value:this.value}),e("b2b-input-label",{id:this.name,required:this.required,disabled:this.disabled},this.label)),void 0!==this.hint&&!this.invalid||void 0!==this.hint&&this.disabled?e("span",null,this.hint):"",void 0!==this.error&&this.invalid&&!this.disabled?e("span",null,this.error):""))}get host(){return i(this)}};s.style=':root,:host{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-table-hover:#e6f4ff;--b2b-color-background-overlay-transparent-40:rgba(34, 34, 34, 0.25);--b2b-color-background-overlay-transparent-80:rgba(34, 34, 34, 0.5);--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-size-headline-line-height-400:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-45);--b2b-size-headline-line-height-100:var(--b2b-size-40);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-75:var(--b2b-size-30);--b2b-size-copy-50:var(--b2b-size-25);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-50:var(--b2b-size-40);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-25);--b2b-color-error-50:var(--b2b-color-red-50)}:root [data-theme="dark"]{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-color-icon-inverted:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-error-50:var(--b2b-color-red-50)}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff") format("woff"), url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf") format("truetype");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff") format("woff"), url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf") format("truetype");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff")}.b2b-radio{font-family:var(--b2b-font-family-default);font-size:var(--b2b-size-copy-100);width:fit-content;margin-bottom:var(--b2b-size-5);margin-right:var(--b2b-size-60)}.b2b-radio-items{display:flex;justify-content:flex-start}.b2b-radio-input{appearance:none;border-radius:50%;display:inline-block;position:relative;vertical-align:top;box-shadow:inset 0 1px 0 var(--b2b-color-grey-400), inset 0 -1px 0 var(--b2b-color-grey-400), inset -1px 0 0 var(--b2b-color-grey-400), inset 1px 0 0 var(--b2b-color-grey-400);width:var(--b2b-size-40);height:var(--b2b-size-40);padding:0;margin:var(--b2b-size-5) var(--b2b-size-15) 3px 0;flex-shrink:0}.b2b-radio-input:checked{background-color:var(--b2b-color-black-50);box-shadow:inset 0 1px 0 var(--b2b-color-black-50), inset 0 -1px 0 var(--b2b-color-black-50), inset -1px 0 0 var(--b2b-color-black-50), inset 1px 0 0 var(--b2b-color-black-50)}.b2b-radio-input:checked::after{content:" ";display:block;position:relative;background-color:var(--b2b-color-white-100);border-radius:50%;top:25%;left:25%;width:50%;height:50%}.b2b-radio b2b-input-label{user-select:none}.b2b-radio span{font-size:var(--b2b-size-copy-75);line-height:var(--b2b-size-copy-line-height-75);color:var(--b2b-color-grey-300);display:block;margin-top:1px}.b2b-radio--error .b2b-radio-input{background-color:var(--b2b-color-error-50);box-shadow:inset 0 1px 0 var(--b2b-color-error-100), inset 0 -1px 0 var(--b2b-color-error-100), inset -1px 0 0 var(--b2b-color-error-100), inset 1px 0 0 var(--b2b-color-error-100)}.b2b-radio--error .b2b-radio-input:checked::after{background-color:var(--b2b-color-error-100)}.b2b-radio--error span{color:var(--b2b-color-error-100)}.b2b-radio--disabled .b2b-radio-input{box-shadow:inset 0 1px 0 var(--b2b-color-grey-300), inset 0 -1px 0 var(--b2b-color-grey-300), inset -1px 0 0 var(--b2b-color-grey-300), inset 1px 0 0 var(--b2b-color-grey-300)}.b2b-radio--disabled .b2b-radio-input:checked{background-color:var(--b2b-color-grey-300)}';export{s as b2b_radio_button}
@@ -1 +0,0 @@
1
- import{r as b,c as e,h as o,H as r,g as i}from"./p-6000aa40.js";const t=class{constructor(o){b(this,o),this.b2bChange=e(this,"b2b-change",7),this.onClick=b=>{if(b.preventDefault(),this.disabled)return;this.checked=!0,this.uncheckSiblings(),this.b2bChange.emit({value:this.value});const e=new globalThis.Event("change");this.host.dispatchEvent(e)},this.uncheckSiblings=()=>{this.getSiblingToggles().forEach((b=>{b.checked=!1}))},this.label=void 0,this.name=void 0,this.checked=!1,this.disabled=!1,this.value=void 0}getSiblingToggles(){return Array.from(document.querySelectorAll(`b2b-toggle-button[name="${this.name}"]`)).filter((b=>b.value!==this.value))}render(){return o(r,{onClick:this.onClick},o("span",{class:{"b2b-toggle-button":!0,"b2b-toggle-button--disabled":this.disabled}},o("input",{tabindex:0,class:{"b2b-toggle-button-input":!0,"b2b-toggle-button-input--disabled":this.disabled},"aria-labelledby":this.name,type:"radio",checked:this.checked&&!this.disabled,disabled:this.disabled,name:this.name,value:this.value}),o("label",{id:this.name,tabindex:-1,class:{"b2b-toggle-button-label":!0,"b2b-toggle-button-label--disabled":this.disabled,"b2b-toggle-button-label--checked":this.checked&&!this.disabled}},this.label)))}get host(){return i(this)}};t.style=':root,:host{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-table-hover:#e6f4ff;--b2b-color-background-overlay-transparent-40:rgba(34, 34, 34, 0.25);--b2b-color-background-overlay-transparent-80:rgba(34, 34, 34, 0.5);--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-size-headline-line-height-400:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-45);--b2b-size-headline-line-height-100:var(--b2b-size-40);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-75:var(--b2b-size-30);--b2b-size-copy-50:var(--b2b-size-25);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-50:var(--b2b-size-40);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-25);--b2b-color-error-50:var(--b2b-color-red-50)}:root [data-theme="dark"]{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-color-icon-inverted:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-error-50:var(--b2b-color-red-50)}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff") format("woff"), url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf") format("truetype");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff") format("woff"), url("https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf") format("truetype");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url("https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff")}:host{--b2b-border-radius:var(--b2b-size-border-radius-100);--b2b-border-right:1px solid var(--b2b-color-grey-200);font-family:var(--b2b-font-family-default);font-size:var(--b2b-size-35);line-height:var(--b2b-size-copy-line-height-75);position:relative;margin:0}:host .b2b-toggle-button-input{border:0;clip:rect(0, 0, 0, 0);height:1px;overflow:hidden;position:absolute !important;width:1px}:host .b2b-toggle-button-label{display:inline-block;position:relative;box-sizing:border-box;font-family:OttoSans, Arial, Helvetica, sans-serif;line-height:1.75rem;transition:all 0.3s ease;background-color:var(--b2b-color-grey-50);border:1px solid var(--b2b-color-grey-200);border-radius:var(--b2b-border-radius);border-right:var(--b2b-border-right);cursor:pointer;text-align:center;text-decoration:none;padding:0 var(--b2b-size-20)}:host .b2b-toggle-button-label:hover{background-color:var(--b2b-color-grey-200)}:host .b2b-toggle-button-input:focus+label{outline:2px solid -webkit-focus-ring-color;z-index:1;transition:none}:host .b2b-toggle-button-input--disabled:focus+label{outline:none}:host .b2b-toggle-button-label--checked,:host .b2b-toggle-button-label--checked:hover{color:var(--b2b-color-white-100);background-color:var(--b2b-color-black-50);border-color:var(--b2b-color-black-50)}:host .b2b-toggle-button-label--disabled,:host .b2b-toggle-button-label--disabled:hover{pointer-events:none;color:var(--b2b-color-grey-250);border-color:var(--b2b-color-grey-100);border-left:var(--b2b-border-left);background-color:var(--b2b-color-grey-50)}';export{t as b2b_toggle_button}