From 508348594b2dacbd62942e600e7b782257dcbf5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Droz=CC=87dz=CC=87yn=CC=81ski?= Date: Fri, 24 May 2024 19:04:35 +0200 Subject: [PATCH] Rename style sheet context name to `STYLE_SHEET` --- .changeset/cold-ghosts-hunt.md | 5 +++++ packages/vue/src/Styled.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/cold-ghosts-hunt.md diff --git a/.changeset/cold-ghosts-hunt.md b/.changeset/cold-ghosts-hunt.md new file mode 100644 index 0000000..17a5a58 --- /dev/null +++ b/.changeset/cold-ghosts-hunt.md @@ -0,0 +1,5 @@ +--- +"@teiler/vue": patch +--- + +Rename style sheet context name to `STYLE_SHEET` diff --git a/packages/vue/src/Styled.ts b/packages/vue/src/Styled.ts index 50c20c3..5f1761f 100644 --- a/packages/vue/src/Styled.ts +++ b/packages/vue/src/Styled.ts @@ -12,9 +12,9 @@ export default function (styleDefinition: St const slots = this.$slots const attrs = toRaw(this.$attrs) - const styleSheet = inject('styleSheet', () => createStyleSheet({}), true) + const styleSheet = inject('STYLE_SHEET', () => createStyleSheet({}), true) - const theme = toRaw(toValue(inject(context))) + const theme = toRaw(toValue(inject(context, {}))) const styleClassName = insert(styleSheet, styleDefinition, { ...attrs, theme })