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