[{"data":1,"prerenderedAt":1305},["ShallowReactive",2],{"navigation_docs":3,"-utilities-composables-use-theme":357,"-utilities-composables-use-theme-surround":847,"component-example-themeSelectUseThemeExample":852,"component-example-ast-themeSelectUseThemeExample":855},[4,110,302],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Documentation","\u002Fdocumentation","1.documentation",[9,35,56,89],{"title":10,"path":11,"stem":12,"children":13,"page":34},"Getting Started","\u002Fdocumentation\u002Fgetting-started","1.documentation\u002F1.getting-started",[14,18,22,26,30],{"title":15,"path":16,"stem":17},"Installation","\u002Fdocumentation\u002Fgetting-started\u002Finstallation","1.documentation\u002F1.getting-started\u002F1.installation",{"title":19,"path":20,"stem":21},"Agents","\u002Fdocumentation\u002Fgetting-started\u002Fagents","1.documentation\u002F1.getting-started\u002F2.agents",{"title":23,"path":24,"stem":25},"Migration","\u002Fdocumentation\u002Fgetting-started\u002Fmigration","1.documentation\u002F1.getting-started\u002F3.migration",{"title":27,"path":28,"stem":29},"Contributing","\u002Fdocumentation\u002Fgetting-started\u002Fcontributing","1.documentation\u002F1.getting-started\u002F4.contributing",{"title":31,"path":32,"stem":33},"What's new","\u002Fdocumentation\u002Fgetting-started\u002Fwhats-new","1.documentation\u002F1.getting-started\u002F5.whats-new",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Guidelines","\u002Fdocumentation\u002Fguidelines","1.documentation\u002F2.guidelines",[40,44,48,52],{"title":41,"path":42,"stem":43},"Design Principles","\u002Fdocumentation\u002Fguidelines\u002Fdesign-principles","1.documentation\u002F2.guidelines\u002F1.design-principles",{"title":45,"path":46,"stem":47},"Accessibility","\u002Fdocumentation\u002Fguidelines\u002Faccessibility","1.documentation\u002F2.guidelines\u002F2.accessibility",{"title":49,"path":50,"stem":51},"Interactions","\u002Fdocumentation\u002Fguidelines\u002Finteractions","1.documentation\u002F2.guidelines\u002F3.interactions",{"title":53,"path":54,"stem":55},"Components","\u002Fdocumentation\u002Fguidelines\u002Fcomponents","1.documentation\u002F2.guidelines\u002F4.components",{"title":57,"path":58,"stem":59,"children":60,"page":34},"Design","\u002Fdocumentation\u002Fdesign","1.documentation\u002F3.design",[61,65,69,73,77,81,85],{"title":62,"path":63,"stem":64},"Tokens","\u002Fdocumentation\u002Fdesign\u002Ftokens","1.documentation\u002F3.design\u002F1.tokens",{"title":66,"path":67,"stem":68},"Color Palette","\u002Fdocumentation\u002Fdesign\u002Fcolor-palette","1.documentation\u002F3.design\u002F2.color-palette",{"title":70,"path":71,"stem":72},"Elevation","\u002Fdocumentation\u002Fdesign\u002Felevation","1.documentation\u002F3.design\u002F3.elevation",{"title":74,"path":75,"stem":76},"Spacing","\u002Fdocumentation\u002Fdesign\u002Fspacing","1.documentation\u002F3.design\u002F4.spacing",{"title":78,"path":79,"stem":80},"Border Radius","\u002Fdocumentation\u002Fdesign\u002Fborder-radius","1.documentation\u002F3.design\u002F5.border-radius",{"title":82,"path":83,"stem":84},"Typography","\u002Fdocumentation\u002Fdesign\u002Ftypography","1.documentation\u002F3.design\u002F6.typography",{"title":86,"path":87,"stem":88},"Icons","\u002Fdocumentation\u002Fdesign\u002Ficons","1.documentation\u002F3.design\u002F7.icons",{"title":90,"path":91,"stem":92,"children":93,"page":34},"Content","\u002Fdocumentation\u002Fcontent","1.documentation\u002F4.content",[94,98,102,106],{"title":95,"path":96,"stem":97},"Wording","\u002Fdocumentation\u002Fcontent\u002Fwording","1.documentation\u002F4.content\u002F1.wording",{"title":99,"path":100,"stem":101},"Messaging","\u002Fdocumentation\u002Fcontent\u002Fmessaging","1.documentation\u002F4.content\u002F2.messaging",{"title":103,"path":104,"stem":105},"Glossary","\u002Fdocumentation\u002Fcontent\u002Fglossary","1.documentation\u002F4.content\u002F3.glossary",{"title":107,"path":108,"stem":109},"Artificial Intelligence","\u002Fdocumentation\u002Fcontent\u002Fartificial-intelligence","1.documentation\u002F4.content\u002F4.artificial-intelligence",{"title":53,"path":111,"stem":112,"children":113,"page":34},"\u002Fcomponents","2.components",[114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250,254,258,262,266,270,274,278,282,286,290,294,298],{"title":115,"path":116,"stem":117},"Action Menu","\u002Fcomponents\u002Faction-menu","2.components\u002Faction-menu",{"title":119,"path":120,"stem":121},"Avatar","\u002Fcomponents\u002Favatar","2.components\u002Favatar",{"title":123,"path":124,"stem":125},"Badge","\u002Fcomponents\u002Fbadge","2.components\u002Fbadge",{"title":127,"path":128,"stem":129},"Banner","\u002Fcomponents\u002Fbanner","2.components\u002Fbanner",{"title":131,"path":132,"stem":133},"Breadcrumb","\u002Fcomponents\u002Fbreadcrumb","2.components\u002Fbreadcrumb",{"title":135,"path":136,"stem":137},"Button","\u002Fcomponents\u002Fbutton","2.components\u002Fbutton",{"title":139,"path":140,"stem":141},"Card","\u002Fcomponents\u002Fcard","2.components\u002Fcard",{"title":143,"path":144,"stem":145},"Chart","\u002Fcomponents\u002Fchart","2.components\u002Fchart",{"title":147,"path":148,"stem":149},"Checkbox","\u002Fcomponents\u002Fcheckbox","2.components\u002Fcheckbox",{"title":151,"path":152,"stem":153},"Collapsible","\u002Fcomponents\u002Fcollapsible","2.components\u002Fcollapsible",{"title":155,"path":156,"stem":157},"Colorpicker","\u002Fcomponents\u002Fcolorpicker","2.components\u002Fcolorpicker",{"title":159,"path":160,"stem":161},"Data Table","\u002Fcomponents\u002Fdata-table","2.components\u002Fdata-table",{"title":163,"path":164,"stem":165},"Datepicker","\u002Fcomponents\u002Fdatepicker","2.components\u002Fdatepicker",{"title":167,"path":168,"stem":169},"Email Field","\u002Fcomponents\u002Femail-field","2.components\u002Femail-field",{"title":171,"path":172,"stem":173},"Empty State","\u002Fcomponents\u002Fempty-state","2.components\u002Fempty-state",{"title":175,"path":176,"stem":177},"Entity Data Table","\u002Fcomponents\u002Fentity-data-table","2.components\u002Fentity-data-table",{"title":179,"path":180,"stem":181},"Entity Select","\u002Fcomponents\u002Fentity-select","2.components\u002Fentity-select",{"title":183,"path":184,"stem":185},"Floating UI","\u002Fcomponents\u002Ffloating-ui","2.components\u002Ffloating-ui",{"title":187,"path":188,"stem":189},"Help Text","\u002Fcomponents\u002Fhelp-text","2.components\u002Fhelp-text",{"title":191,"path":192,"stem":193},"Icon","\u002Fcomponents\u002Ficon","2.components\u002Ficon",{"title":195,"path":196,"stem":197},"Link","\u002Fcomponents\u002Flink","2.components\u002Flink",{"title":199,"path":200,"stem":201},"Loader","\u002Fcomponents\u002Floader","2.components\u002Floader",{"title":203,"path":204,"stem":205},"Modal","\u002Fcomponents\u002Fmodal","2.components\u002Fmodal",{"title":207,"path":208,"stem":209},"Number Field","\u002Fcomponents\u002Fnumber-field","2.components\u002Fnumber-field",{"title":211,"path":212,"stem":213},"Pagination","\u002Fcomponents\u002Fpagination","2.components\u002Fpagination",{"title":215,"path":216,"stem":217},"Password Field","\u002Fcomponents\u002Fpassword-field","2.components\u002Fpassword-field",{"title":219,"path":220,"stem":221},"Popover","\u002Fcomponents\u002Fpopover","2.components\u002Fpopover",{"title":223,"path":224,"stem":225},"Progress Bar","\u002Fcomponents\u002Fprogress-bar","2.components\u002Fprogress-bar",{"title":227,"path":228,"stem":229},"Promo Badge","\u002Fcomponents\u002Fpromo-badge","2.components\u002Fpromo-badge",{"title":231,"path":232,"stem":233},"Radio Group","\u002Fcomponents\u002Fradio-group","2.components\u002Fradio-group",{"title":235,"path":236,"stem":237},"Search","\u002Fcomponents\u002Fsearch","2.components\u002Fsearch",{"title":239,"path":240,"stem":241},"Select","\u002Fcomponents\u002Fselect","2.components\u002Fselect",{"title":243,"path":244,"stem":245},"Skeleton Bar","\u002Fcomponents\u002Fskeleton-bar","2.components\u002Fskeleton-bar",{"title":247,"path":248,"stem":249},"Slider","\u002Fcomponents\u002Fslider","2.components\u002Fslider",{"title":251,"path":252,"stem":253},"Snackbar","\u002Fcomponents\u002Fsnackbar","2.components\u002Fsnackbar",{"title":255,"path":256,"stem":257},"Status Dot","\u002Fcomponents\u002Fstatus-dot","2.components\u002Fstatus-dot",{"title":259,"path":260,"stem":261},"Switch","\u002Fcomponents\u002Fswitch","2.components\u002Fswitch",{"title":263,"path":264,"stem":265},"Tabs","\u002Fcomponents\u002Ftabs","2.components\u002Ftabs",{"title":267,"path":268,"stem":269},"Text","\u002Fcomponents\u002Ftext","2.components\u002Ftext",{"title":271,"path":272,"stem":273},"Text Editor","\u002Fcomponents\u002Ftext-editor","2.components\u002Ftext-editor",{"title":275,"path":276,"stem":277},"Text Field","\u002Fcomponents\u002Ftext-field","2.components\u002Ftext-field",{"title":279,"path":280,"stem":281},"Textarea","\u002Fcomponents\u002Ftextarea","2.components\u002Ftextarea",{"title":283,"path":284,"stem":285},"Theme Select","\u002Fcomponents\u002Ftheme-select","2.components\u002Ftheme-select",{"title":287,"path":288,"stem":289},"Toast","\u002Fcomponents\u002Ftoast","2.components\u002Ftoast",{"title":291,"path":292,"stem":293},"Tooltip","\u002Fcomponents\u002Ftooltip","2.components\u002Ftooltip",{"title":295,"path":296,"stem":297},"Unit Field","\u002Fcomponents\u002Funit-field","2.components\u002Funit-field",{"title":299,"path":300,"stem":301},"URL Field","\u002Fcomponents\u002Furl-field","2.components\u002Furl-field",{"title":303,"path":304,"stem":305,"children":306,"page":34},"Utilities","\u002Futilities","3.utilities",[307,319,340,348],{"title":53,"path":308,"stem":309,"children":310,"page":34},"\u002Futilities\u002Fcomponents","3.utilities\u002Fcomponents",[311,315],{"title":312,"path":313,"stem":314},"Inset","\u002Futilities\u002Fcomponents\u002Finset","3.utilities\u002Fcomponents\u002Finset",{"title":316,"path":317,"stem":318},"Theme Provider","\u002Futilities\u002Fcomponents\u002Ftheme-provider","3.utilities\u002Fcomponents\u002Ftheme-provider",{"title":320,"path":321,"stem":322,"children":323,"page":34},"Composables","\u002Futilities\u002Fcomposables","3.utilities\u002Fcomposables",[324,328,332,336],{"title":325,"path":326,"stem":327},"useFutureFlags","\u002Futilities\u002Fcomposables\u002Fuse-future-flags","3.utilities\u002Fcomposables\u002Fuse-future-flags",{"title":329,"path":330,"stem":331},"useServicePermission","\u002Futilities\u002Fcomposables\u002Fuse-service-permission","3.utilities\u002Fcomposables\u002Fuse-service-permission",{"title":333,"path":334,"stem":335},"useSnackbar","\u002Futilities\u002Fcomposables\u002Fuse-snackbar","3.utilities\u002Fcomposables\u002Fuse-snackbar",{"title":337,"path":338,"stem":339},"useTheme","\u002Futilities\u002Fcomposables\u002Fuse-theme","3.utilities\u002Fcomposables\u002Fuse-theme",{"title":341,"path":342,"stem":343,"children":344,"page":34},"Directives","\u002Futilities\u002Fdirectives","3.utilities\u002Fdirectives",[345],{"title":291,"path":346,"stem":347},"\u002Futilities\u002Fdirectives\u002Ftooltip","3.utilities\u002Fdirectives\u002Ftooltip",{"title":349,"path":350,"stem":351,"children":352,"page":34},"Plugins","\u002Futilities\u002Fplugins","3.utilities\u002Fplugins",[353],{"title":354,"path":355,"stem":356},"Device helper","\u002Futilities\u002Fplugins\u002Fdevice-helper","3.utilities\u002Fplugins\u002Fdevice-helper",{"id":358,"title":337,"body":359,"description":841,"extension":842,"links":843,"meta":844,"navigation":458,"path":338,"seo":845,"stem":339,"__hash__":846},"docs\u002F3.utilities\u002Fcomposables\u002Fuse-theme.md",{"type":360,"value":361,"toc":831},"minimark",[362,367,372,421,500,507,511,516,522,631,635,733,737,787,791,814,818,827],[363,364],"component-example",{":full-width":365,"name":366},"true","theme-select-use-theme-example",[368,369,371],"h2",{"id":370},"usage","Usage",[373,374,375,378,379,382,383,386,387,390,391,393,394,397,398,401,402,405,406,409,410,416,417,420],"p",{},[376,377,337],"code",{}," manages the application color theme. It tracks the user's preference (",[376,380,381],{},"light",", ",[376,384,385],{},"dark",", or ",[376,388,389],{},"system","), resolves ",[376,392,389],{}," against the operating system via ",[376,395,396],{},"prefers-color-scheme",", writes the resolved value to a target element's ",[376,399,400],{},"data-theme"," attribute (the document root by default), and persists the choice to ",[376,403,404],{},"localStorage",". Bind the returned ",[376,407,408],{},"theme"," ref to ",[411,412,413],"a",{"href":284},[414,415,283],"strong",{}," with ",[376,418,419],{},"v-model"," to let users control it.",[422,423,428],"pre",{"className":424,"code":425,"language":426,"meta":427,"style":427},"language-ts shiki shiki-themes github-light github-dark-default github-dark-default","import { useTheme } from \"@shopware-ag\u002Fmeteor-component-library\";\n\nconst { theme, resolvedTheme, setTheme, stop } = useTheme();\n","ts","",[376,429,430,453,460],{"__ignoreMap":427},[431,432,435,439,443,446,450],"span",{"class":433,"line":434},"line",1,[431,436,438],{"class":437},"sLfaJ","import",[431,440,442],{"class":441},"sSgjj"," { useTheme } ",[431,444,445],{"class":437},"from",[431,447,449],{"class":448},"sL1yV"," \"@shopware-ag\u002Fmeteor-component-library\"",[431,451,452],{"class":441},";\n",[431,454,456],{"class":433,"line":455},2,[431,457,459],{"emptyLinePlaceholder":458},true,"\n",[431,461,463,466,469,472,474,477,479,482,484,487,490,493,497],{"class":433,"line":462},3,[431,464,465],{"class":437},"const",[431,467,468],{"class":441}," { ",[431,470,408],{"class":471},"sfxXV",[431,473,382],{"class":441},[431,475,476],{"class":471},"resolvedTheme",[431,478,382],{"class":441},[431,480,481],{"class":471},"setTheme",[431,483,382],{"class":441},[431,485,486],{"class":471},"stop",[431,488,489],{"class":441}," } ",[431,491,492],{"class":437},"=",[431,494,496],{"class":495},"s71ug"," useTheme",[431,498,499],{"class":441},"();\n",[373,501,502,503,506],{},"The preference is shared: instances using the same ",[376,504,505],{},"storageKey"," stay in sync within the document and across browser tabs.",[368,508,510],{"id":509},"api","API",[512,513,515],"h3",{"id":514},"options","Options",[373,517,518,521],{},[376,519,520],{},"useTheme(options?)"," accepts:",[523,524,525,541],"table",{},[526,527,528],"thead",{},[529,530,531,535,538],"tr",{},[532,533,534],"th",{},"Option",[532,536,537],{},"Type",[532,539,540],{},"Description",[542,543,544,570,592,610],"tbody",{},[529,545,546,551,556],{},[547,548,549],"td",{},[376,550,505],{},[547,552,553],{},[376,554,555],{},"string | null",[547,557,558,559,561,562,565,566,569],{},"The ",[376,560,404],{}," key used to persist the preference. Defaults to ",[376,563,564],{},"\"mt-theme\"",". Set it to ",[376,567,568],{},"null"," to disable persistence.",[529,571,572,577,582],{},[547,573,574],{},[376,575,576],{},"target",[547,578,579],{},[376,580,581],{},"HTMLElement",[547,583,584,585,587,588,591],{},"The element whose ",[376,586,400],{}," attribute is kept in sync with the resolved theme. Defaults to ",[376,589,590],{},"document.documentElement",".",[529,593,594,599,604],{},[547,595,596],{},[376,597,598],{},"defaultTheme",[547,600,601],{},[376,602,603],{},"\"light\" | \"dark\" | \"system\"",[547,605,606,607,591],{},"The preference used when nothing has been persisted yet. Defaults to ",[376,608,609],{},"\"system\"",[529,611,612,617,622],{},[547,613,614],{},[376,615,616],{},"applyToTarget",[547,618,619],{},[376,620,621],{},"boolean",[547,623,624,625,627,628,630],{},"Whether to write the resolved theme to the target's ",[376,626,400],{}," attribute. Defaults to ",[376,629,365],{},". Disable it when the host applies the theme itself.",[512,632,634],{"id":633},"return-value","Return value",[523,636,637,648],{},[526,638,639],{},[529,640,641,644,646],{},[532,642,643],{},"Member",[532,645,537],{},[532,647,540],{},[542,649,650,679,701,715],{},[529,651,652,656,661],{},[547,653,654],{},[376,655,408],{},[547,657,658],{},[376,659,660],{},"Ref\u003CTheme>",[547,662,663,664,382,667,386,670,672,673,416,677,591],{},"The user's preference: ",[376,665,666],{},"\"light\"",[376,668,669],{},"\"dark\"",[376,671,609],{},". Writable; bind it to ",[411,674,675],{"href":284},[414,676,283],{},[376,678,419],{},[529,680,681,685,690],{},[547,682,683],{},[376,684,476],{},[547,686,687],{},[376,688,689],{},"ComputedRef\u003CResolvedTheme>",[547,691,692,693,695,696,698,699,591],{},"The applied theme after resolving ",[376,694,609],{},": ",[376,697,666],{}," or ",[376,700,669],{},[529,702,703,707,712],{},[547,704,705],{},[376,706,481],{},[547,708,709],{},[376,710,711],{},"(theme: Theme) => void",[547,713,714],{},"Sets the preference programmatically.",[529,716,717,721,726],{},[547,718,719],{},[376,720,486],{},[547,722,723],{},[376,724,725],{},"() => void",[547,727,728,729,732],{},"Releases all listeners. Called automatically on scope disposal when used inside a component or ",[376,730,731],{},"effectScope","; call it manually when using the composable outside of an active scope.",[512,734,736],{"id":735},"types","Types",[422,738,740],{"className":424,"code":739,"language":426,"meta":427,"style":427},"type Theme = \"light\" | \"dark\" | \"system\";\ntype ResolvedTheme = \"light\" | \"dark\";\n",[376,741,742,770],{"__ignoreMap":427},[431,743,744,747,751,754,757,760,763,765,768],{"class":433,"line":434},[431,745,746],{"class":437},"type",[431,748,750],{"class":749},"s0wlp"," Theme",[431,752,753],{"class":437}," =",[431,755,756],{"class":448}," \"light\"",[431,758,759],{"class":437}," |",[431,761,762],{"class":448}," \"dark\"",[431,764,759],{"class":437},[431,766,767],{"class":448}," \"system\"",[431,769,452],{"class":441},[431,771,772,774,777,779,781,783,785],{"class":433,"line":455},[431,773,746],{"class":437},[431,775,776],{"class":749}," ResolvedTheme",[431,778,753],{"class":437},[431,780,756],{"class":448},[431,782,759],{"class":437},[431,784,762],{"class":448},[431,786,452],{"class":441},[368,788,790],{"id":789},"behavior","Behavior",[792,793,794,803,808],"ul",{},[795,796,797,798,382,800,802],"li",{},"While the preference is ",[376,799,389],{},[376,801,476],{}," updates live when the operating system preference changes.",[795,804,805,806,591],{},"Invalid persisted values are ignored and fall back to ",[376,807,598],{},[795,809,810,811,813],{},"Meteor tokens are theme-aware through ",[376,812,400],{},", so applying the resolved theme to the document root themes every Meteor component on the page.",[368,815,817],{"id":816},"related-components","Related components",[792,819,820],{},[795,821,822,826],{},[411,823,824],{"href":284},[414,825,283],{},": the select component built for choosing the theme this composable manages.",[828,829,830],"style",{},"html pre.shiki code .sLfaJ, html code.shiki .sLfaJ{--shiki-light:#D73A49;--shiki-default:#FF7B72;--shiki-dark:#FF7B72}html pre.shiki code .sSgjj, html code.shiki .sSgjj{--shiki-light:#24292E;--shiki-default:#E6EDF3;--shiki-dark:#E6EDF3}html pre.shiki code .sL1yV, html code.shiki .sL1yV{--shiki-light:#032F62;--shiki-default:#A5D6FF;--shiki-dark:#A5D6FF}html pre.shiki code .sfxXV, html code.shiki .sfxXV{--shiki-light:#005CC5;--shiki-default:#79C0FF;--shiki-dark:#79C0FF}html pre.shiki code .s71ug, html code.shiki .s71ug{--shiki-light:#6F42C1;--shiki-default:#D2A8FF;--shiki-dark:#D2A8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s0wlp, html code.shiki .s0wlp{--shiki-light:#6F42C1;--shiki-default:#FFA657;--shiki-dark:#FFA657}",{"title":427,"searchDepth":455,"depth":455,"links":832},[833,834,839,840],{"id":370,"depth":455,"text":371},{"id":509,"depth":455,"text":510,"children":835},[836,837,838],{"id":514,"depth":462,"text":515},{"id":633,"depth":462,"text":634},{"id":735,"depth":462,"text":736},{"id":789,"depth":455,"text":790},{"id":816,"depth":455,"text":817},"A composable for managing the application color theme, resolving the system preference, and persisting the choice.","md",null,{},{"title":337,"description":841},"dXbxJHPExu5eN0wT8Btj7N7WEXkrqIrUQ3ibRnRqd1c",[848,850],{"title":333,"path":334,"stem":335,"description":849,"children":-1},"A composable for publishing snackbar notifications from anywhere in your app.",{"title":291,"path":346,"stem":347,"description":851,"children":-1},"A v-tooltip directive for attaching a tooltip to any element, a lightweight alternative to the Tooltip component.",{"code":853,"pascalName":854},"\u003Cscript setup lang=\"ts\">\nimport MtThemeSelect from \"@shopware-ag\u002Fmeteor-component-library\u002FMtThemeSelect\";\nimport MtText from \"@shopware-ag\u002Fmeteor-component-library\u002FMtText\";\n\u002F\u002F useTheme has no subpath export, so it is imported from the barrel.\nimport { useTheme } from \"@shopware-ag\u002Fmeteor-component-library\";\n\n\u002F\u002F Persistence and global application are disabled so the docs page itself\n\u002F\u002F stays untouched. Omit these options in your app.\nconst { theme, resolvedTheme } = useTheme({\n  storageKey: null,\n  applyToTarget: false,\n});\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv style=\"display: flex; flex-direction: column; gap: 16px\">\n    \u003Cmt-theme-select v-model=\"theme\" label=\"Color theme\" \u002F>\n\n    \u003Cmt-text>Resolved theme: {{ resolvedTheme }}\u003C\u002Fmt-text>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","ThemeSelectUseThemeExample",{"data":856,"body":857,"toc":1303},{"title":427,"description":427},{"type":858,"children":859},"root",[860,1298],{"type":861,"tag":422,"props":862,"children":865},"element",{"className":863,"code":853,"language":864,"meta":427,"style":427},"language-vue shiki shiki-themes github-light github-dark-default github-dark-default","vue",[866],{"type":861,"tag":376,"props":867,"children":868},{"__ignoreMap":427},[869,911,937,962,972,996,1004,1013,1022,1065,1083,1101,1110,1127,1135,1152,1184,1231,1239,1265,1282],{"type":861,"tag":431,"props":870,"children":871},{"class":433,"line":434},[872,879,885,891,896,900,906],{"type":861,"tag":431,"props":873,"children":875},{"style":874},"--shiki-light:#24292E;--shiki-default:#E6EDF3;--shiki-dark:#E6EDF3",[876],{"type":877,"value":878},"text","\u003C",{"type":861,"tag":431,"props":880,"children":882},{"style":881},"--shiki-light:#22863A;--shiki-default:#7EE787;--shiki-dark:#7EE787",[883],{"type":877,"value":884},"script",{"type":861,"tag":431,"props":886,"children":888},{"style":887},"--shiki-light:#6F42C1;--shiki-default:#79C0FF;--shiki-dark:#79C0FF",[889],{"type":877,"value":890}," setup",{"type":861,"tag":431,"props":892,"children":893},{"style":887},[894],{"type":877,"value":895}," lang",{"type":861,"tag":431,"props":897,"children":898},{"style":874},[899],{"type":877,"value":492},{"type":861,"tag":431,"props":901,"children":903},{"style":902},"--shiki-light:#032F62;--shiki-default:#A5D6FF;--shiki-dark:#A5D6FF",[904],{"type":877,"value":905},"\"ts\"",{"type":861,"tag":431,"props":907,"children":908},{"style":874},[909],{"type":877,"value":910},">\n",{"type":861,"tag":431,"props":912,"children":913},{"class":433,"line":455},[914,919,924,928,933],{"type":861,"tag":431,"props":915,"children":917},{"style":916},"--shiki-light:#D73A49;--shiki-default:#FF7B72;--shiki-dark:#FF7B72",[918],{"type":877,"value":438},{"type":861,"tag":431,"props":920,"children":921},{"style":874},[922],{"type":877,"value":923}," MtThemeSelect ",{"type":861,"tag":431,"props":925,"children":926},{"style":916},[927],{"type":877,"value":445},{"type":861,"tag":431,"props":929,"children":930},{"style":902},[931],{"type":877,"value":932}," \"@shopware-ag\u002Fmeteor-component-library\u002FMtThemeSelect\"",{"type":861,"tag":431,"props":934,"children":935},{"style":874},[936],{"type":877,"value":452},{"type":861,"tag":431,"props":938,"children":939},{"class":433,"line":462},[940,944,949,953,958],{"type":861,"tag":431,"props":941,"children":942},{"style":916},[943],{"type":877,"value":438},{"type":861,"tag":431,"props":945,"children":946},{"style":874},[947],{"type":877,"value":948}," MtText ",{"type":861,"tag":431,"props":950,"children":951},{"style":916},[952],{"type":877,"value":445},{"type":861,"tag":431,"props":954,"children":955},{"style":902},[956],{"type":877,"value":957}," \"@shopware-ag\u002Fmeteor-component-library\u002FMtText\"",{"type":861,"tag":431,"props":959,"children":960},{"style":874},[961],{"type":877,"value":452},{"type":861,"tag":431,"props":963,"children":965},{"class":433,"line":964},4,[966],{"type":861,"tag":431,"props":967,"children":969},{"style":968},"--shiki-light:#6A737D;--shiki-default:#8B949E;--shiki-dark:#8B949E",[970],{"type":877,"value":971},"\u002F\u002F useTheme has no subpath export, so it is imported from the barrel.\n",{"type":861,"tag":431,"props":973,"children":975},{"class":433,"line":974},5,[976,980,984,988,992],{"type":861,"tag":431,"props":977,"children":978},{"style":916},[979],{"type":877,"value":438},{"type":861,"tag":431,"props":981,"children":982},{"style":874},[983],{"type":877,"value":442},{"type":861,"tag":431,"props":985,"children":986},{"style":916},[987],{"type":877,"value":445},{"type":861,"tag":431,"props":989,"children":990},{"style":902},[991],{"type":877,"value":449},{"type":861,"tag":431,"props":993,"children":994},{"style":874},[995],{"type":877,"value":452},{"type":861,"tag":431,"props":997,"children":999},{"class":433,"line":998},6,[1000],{"type":861,"tag":431,"props":1001,"children":1002},{"emptyLinePlaceholder":458},[1003],{"type":877,"value":459},{"type":861,"tag":431,"props":1005,"children":1007},{"class":433,"line":1006},7,[1008],{"type":861,"tag":431,"props":1009,"children":1010},{"style":968},[1011],{"type":877,"value":1012},"\u002F\u002F Persistence and global application are disabled so the docs page itself\n",{"type":861,"tag":431,"props":1014,"children":1016},{"class":433,"line":1015},8,[1017],{"type":861,"tag":431,"props":1018,"children":1019},{"style":968},[1020],{"type":877,"value":1021},"\u002F\u002F stays untouched. Omit these options in your app.\n",{"type":861,"tag":431,"props":1023,"children":1025},{"class":433,"line":1024},9,[1026,1030,1034,1039,1043,1047,1051,1055,1060],{"type":861,"tag":431,"props":1027,"children":1028},{"style":916},[1029],{"type":877,"value":465},{"type":861,"tag":431,"props":1031,"children":1032},{"style":874},[1033],{"type":877,"value":468},{"type":861,"tag":431,"props":1035,"children":1037},{"style":1036},"--shiki-light:#005CC5;--shiki-default:#79C0FF;--shiki-dark:#79C0FF",[1038],{"type":877,"value":408},{"type":861,"tag":431,"props":1040,"children":1041},{"style":874},[1042],{"type":877,"value":382},{"type":861,"tag":431,"props":1044,"children":1045},{"style":1036},[1046],{"type":877,"value":476},{"type":861,"tag":431,"props":1048,"children":1049},{"style":874},[1050],{"type":877,"value":489},{"type":861,"tag":431,"props":1052,"children":1053},{"style":916},[1054],{"type":877,"value":492},{"type":861,"tag":431,"props":1056,"children":1058},{"style":1057},"--shiki-light:#6F42C1;--shiki-default:#D2A8FF;--shiki-dark:#D2A8FF",[1059],{"type":877,"value":496},{"type":861,"tag":431,"props":1061,"children":1062},{"style":874},[1063],{"type":877,"value":1064},"({\n",{"type":861,"tag":431,"props":1066,"children":1068},{"class":433,"line":1067},10,[1069,1074,1078],{"type":861,"tag":431,"props":1070,"children":1071},{"style":874},[1072],{"type":877,"value":1073},"  storageKey: ",{"type":861,"tag":431,"props":1075,"children":1076},{"style":1036},[1077],{"type":877,"value":568},{"type":861,"tag":431,"props":1079,"children":1080},{"style":874},[1081],{"type":877,"value":1082},",\n",{"type":861,"tag":431,"props":1084,"children":1086},{"class":433,"line":1085},11,[1087,1092,1097],{"type":861,"tag":431,"props":1088,"children":1089},{"style":874},[1090],{"type":877,"value":1091},"  applyToTarget: ",{"type":861,"tag":431,"props":1093,"children":1094},{"style":1036},[1095],{"type":877,"value":1096},"false",{"type":861,"tag":431,"props":1098,"children":1099},{"style":874},[1100],{"type":877,"value":1082},{"type":861,"tag":431,"props":1102,"children":1104},{"class":433,"line":1103},12,[1105],{"type":861,"tag":431,"props":1106,"children":1107},{"style":874},[1108],{"type":877,"value":1109},"});\n",{"type":861,"tag":431,"props":1111,"children":1113},{"class":433,"line":1112},13,[1114,1119,1123],{"type":861,"tag":431,"props":1115,"children":1116},{"style":874},[1117],{"type":877,"value":1118},"\u003C\u002F",{"type":861,"tag":431,"props":1120,"children":1121},{"style":881},[1122],{"type":877,"value":884},{"type":861,"tag":431,"props":1124,"children":1125},{"style":874},[1126],{"type":877,"value":910},{"type":861,"tag":431,"props":1128,"children":1130},{"class":433,"line":1129},14,[1131],{"type":861,"tag":431,"props":1132,"children":1133},{"emptyLinePlaceholder":458},[1134],{"type":877,"value":459},{"type":861,"tag":431,"props":1136,"children":1138},{"class":433,"line":1137},15,[1139,1143,1148],{"type":861,"tag":431,"props":1140,"children":1141},{"style":874},[1142],{"type":877,"value":878},{"type":861,"tag":431,"props":1144,"children":1145},{"style":881},[1146],{"type":877,"value":1147},"template",{"type":861,"tag":431,"props":1149,"children":1150},{"style":874},[1151],{"type":877,"value":910},{"type":861,"tag":431,"props":1153,"children":1155},{"class":433,"line":1154},16,[1156,1161,1166,1171,1175,1180],{"type":861,"tag":431,"props":1157,"children":1158},{"style":874},[1159],{"type":877,"value":1160},"  \u003C",{"type":861,"tag":431,"props":1162,"children":1163},{"style":881},[1164],{"type":877,"value":1165},"div",{"type":861,"tag":431,"props":1167,"children":1168},{"style":887},[1169],{"type":877,"value":1170}," style",{"type":861,"tag":431,"props":1172,"children":1173},{"style":874},[1174],{"type":877,"value":492},{"type":861,"tag":431,"props":1176,"children":1177},{"style":902},[1178],{"type":877,"value":1179},"\"display: flex; flex-direction: column; gap: 16px\"",{"type":861,"tag":431,"props":1181,"children":1182},{"style":874},[1183],{"type":877,"value":910},{"type":861,"tag":431,"props":1185,"children":1187},{"class":433,"line":1186},17,[1188,1193,1198,1203,1207,1212,1217,1221,1226],{"type":861,"tag":431,"props":1189,"children":1190},{"style":874},[1191],{"type":877,"value":1192},"    \u003C",{"type":861,"tag":431,"props":1194,"children":1195},{"style":881},[1196],{"type":877,"value":1197},"mt-theme-select",{"type":861,"tag":431,"props":1199,"children":1200},{"style":887},[1201],{"type":877,"value":1202}," v-model",{"type":861,"tag":431,"props":1204,"children":1205},{"style":874},[1206],{"type":877,"value":492},{"type":861,"tag":431,"props":1208,"children":1209},{"style":902},[1210],{"type":877,"value":1211},"\"theme\"",{"type":861,"tag":431,"props":1213,"children":1214},{"style":887},[1215],{"type":877,"value":1216}," label",{"type":861,"tag":431,"props":1218,"children":1219},{"style":874},[1220],{"type":877,"value":492},{"type":861,"tag":431,"props":1222,"children":1223},{"style":902},[1224],{"type":877,"value":1225},"\"Color theme\"",{"type":861,"tag":431,"props":1227,"children":1228},{"style":874},[1229],{"type":877,"value":1230}," \u002F>\n",{"type":861,"tag":431,"props":1232,"children":1234},{"class":433,"line":1233},18,[1235],{"type":861,"tag":431,"props":1236,"children":1237},{"emptyLinePlaceholder":458},[1238],{"type":877,"value":459},{"type":861,"tag":431,"props":1240,"children":1242},{"class":433,"line":1241},19,[1243,1247,1252,1257,1261],{"type":861,"tag":431,"props":1244,"children":1245},{"style":874},[1246],{"type":877,"value":1192},{"type":861,"tag":431,"props":1248,"children":1249},{"style":881},[1250],{"type":877,"value":1251},"mt-text",{"type":861,"tag":431,"props":1253,"children":1254},{"style":874},[1255],{"type":877,"value":1256},">Resolved theme: {{ resolvedTheme }}\u003C\u002F",{"type":861,"tag":431,"props":1258,"children":1259},{"style":881},[1260],{"type":877,"value":1251},{"type":861,"tag":431,"props":1262,"children":1263},{"style":874},[1264],{"type":877,"value":910},{"type":861,"tag":431,"props":1266,"children":1268},{"class":433,"line":1267},20,[1269,1274,1278],{"type":861,"tag":431,"props":1270,"children":1271},{"style":874},[1272],{"type":877,"value":1273},"  \u003C\u002F",{"type":861,"tag":431,"props":1275,"children":1276},{"style":881},[1277],{"type":877,"value":1165},{"type":861,"tag":431,"props":1279,"children":1280},{"style":874},[1281],{"type":877,"value":910},{"type":861,"tag":431,"props":1283,"children":1285},{"class":433,"line":1284},21,[1286,1290,1294],{"type":861,"tag":431,"props":1287,"children":1288},{"style":874},[1289],{"type":877,"value":1118},{"type":861,"tag":431,"props":1291,"children":1292},{"style":881},[1293],{"type":877,"value":1147},{"type":861,"tag":431,"props":1295,"children":1296},{"style":874},[1297],{"type":877,"value":910},{"type":861,"tag":828,"props":1299,"children":1300},{},[1301],{"type":877,"value":1302},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":427,"searchDepth":455,"depth":455,"links":1304},[],1788770859415]