Skip to content

Commit 1a665f6

Browse files
committed
chore: pin unocss instead
1 parent f91d681 commit 1a665f6

3 files changed

Lines changed: 26 additions & 36 deletions

File tree

pnpm-lock.yaml

Lines changed: 23 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ overrides:
2424
sharp: 0.34.5
2525
vite: npm:@voidzero-dev/vite-plus-core@0.0.0-g52709db6.20260226-1136
2626
vitest: npm:@voidzero-dev/vite-plus-test@0.0.0-g52709db6.20260226-1136
27+
'@unocss/core': 66.6.3
2728
storybook: ^10.2.7
28-
workbox-build>rollup: 2.79.2
2929

3030
packageExtensions:
3131
'@nuxt/scripts':

uno-preset-rtl.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ function directionSizeRTL(
5151
prefixMap?: { l: string; r: string },
5252
checker?: CollectorChecker,
5353
): DynamicMatcher {
54-
// Cast needed: @unocss/preset-wind4 may resolve a different @unocss/core patch version
55-
// than unocss, making DynamicMatcher<Theme> structurally identical but nominally different
56-
const matcher = directionSize(propertyPrefix) as unknown as DynamicMatcher
54+
const matcher = directionSize(propertyPrefix)
5755
return ([match, direction, size], context) => {
5856
if (!size) return undefined
5957
const defaultMap = { l: 'is', r: 'ie' }
@@ -189,10 +187,7 @@ export function presetRtl(checker?: CollectorChecker): Preset {
189187

190188
reportWarning(fullClass, suggestedClass, checker)
191189

192-
return (directionSize('inset') as unknown as DynamicMatcher)(
193-
['', direction === 'left' ? 'is' : 'ie', size],
194-
context,
195-
)
190+
return directionSize('inset')(['', direction === 'left' ? 'is' : 'ie', size], context)
196191
},
197192
{ autocomplete: '(left|right)-<num>' },
198193
],

0 commit comments

Comments
 (0)